Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/libata.h>
#include <linux/slab.h>
#include "libata.h"
#include <scsi/scsi_host.h>
#include <scsi/scsi_cmnd.h>
Go to the source code of this file.
Data Structures | |
struct | dmareg |
struct | dma_chan_regs |
struct | dma_interrupt_regs |
struct | ahb_dma_regs |
struct | lli |
struct | sata_dwc_regs |
struct | sata_dwc_device |
struct | sata_dwc_device_port |
struct | sata_dwc_host_priv |
Macros | |
#define | DRV_NAME "sata-dwc" |
#define | DRV_VERSION "1.3" |
#define | DMA_NUM_CHANS 1 |
#define | DMA_NUM_CHAN_REGS 8 |
#define | AHB_DMA_BRST_DFLT 64 /* 16 data items burst length*/ |
#define | DMA_CTL_BLK_TS(size) ((size) & 0x000000FFF) /* Blk Transfer size */ |
#define | DMA_CHANNEL(ch) (0x00000001 << (ch)) /* Select channel */ |
#define | DMA_ENABLE_CHAN(ch) |
#define | DMA_DISABLE_CHAN(ch) (0x00000000 | ((0x000000001 << (ch)) << 8)) |
#define | DMA_CTL_TTFC(type) (((type) & 0x7) << 20) |
#define | DMA_CTL_SMS(num) (((num) & 0x3) << 25) /* Src Master Select */ |
#define | DMA_CTL_DMS(num) (((num) & 0x3) << 23)/* Dst Master Select */ |
#define | DMA_CTL_SRC_MSIZE(size) (((size) & 0x7) << 14) |
#define | DMA_CTL_DST_MSIZE(size) (((size) & 0x7) << 11) |
#define | DMA_CTL_SRC_TRWID(size) (((size) & 0x7) << 4) |
#define | DMA_CTL_DST_TRWID(size) (((size) & 0x7) << 1) |
#define | DMA_CFG_HW_HS_DEST(int_num) (((int_num) & 0xF) << 11) |
#define | DMA_CFG_HW_HS_SRC(int_num) (((int_num) & 0xF) << 7) |
#define | DMA_CFG_HW_CH_PRIOR(int_num) (((int_num) & 0xF) << 5) |
#define | DMA_LLP_LMS(addr, master) (((addr) & 0xfffffffc) | (master)) |
#define | SATA_DWC_SCR0_SPD_GET(v) (((v) >> 4) & 0x0000000F) |
#define | SATA_DWC_DMACR_TX_CLEAR(v) |
#define | SATA_DWC_DMACR_RX_CLEAR(v) |
#define | SATA_DWC_DBTSR_MWR(size) (((size)/4) & SATA_DWC_TXFIFO_DEPTH) |
#define | SATA_DWC_DBTSR_MRD(size) |
#define | SATA_DWC_QCMD_MAX 32 |
#define | HSDEV_FROM_HOST(host) |
#define | HSDEV_FROM_AP(ap) |
#define | HSDEVP_FROM_AP(ap) |
#define | HSDEV_FROM_QC(qc) |
#define | HSDEV_FROM_HSDEVP(p) |
Functions | |
int | sata_dwc_hardreset (struct ata_link *link, unsigned int *class, unsigned long deadline) |
MODULE_DEVICE_TABLE (of, sata_dwc_match) | |
module_platform_driver (sata_dwc_driver) | |
MODULE_LICENSE ("GPL") | |
MODULE_AUTHOR ("Mark Miesfeld <[email protected]>") | |
MODULE_DESCRIPTION ("DesignWare Cores SATA controller low lever driver") | |
MODULE_VERSION (DRV_VERSION) | |
Variables | |
struct sata_dwc_host_priv | host_pvt |
Definition at line 54 of file sata_dwc_460ex.c.
#define DMA_CFG_HW_CH_PRIOR | ( | int_num | ) | (((int_num) & 0xF) << 5) |
Definition at line 161 of file sata_dwc_460ex.c.
#define DMA_CFG_HW_HS_DEST | ( | int_num | ) | (((int_num) & 0xF) << 11) |
Definition at line 159 of file sata_dwc_460ex.c.
#define DMA_CFG_HW_HS_SRC | ( | int_num | ) | (((int_num) & 0xF) << 7) |
Definition at line 160 of file sata_dwc_460ex.c.
#define DMA_CHANNEL | ( | ch | ) | (0x00000001 << (ch)) /* Select channel */ |
Definition at line 139 of file sata_dwc_460ex.c.
Definition at line 138 of file sata_dwc_460ex.c.
Definition at line 148 of file sata_dwc_460ex.c.
Definition at line 152 of file sata_dwc_460ex.c.
Definition at line 156 of file sata_dwc_460ex.c.
Definition at line 147 of file sata_dwc_460ex.c.
Definition at line 150 of file sata_dwc_460ex.c.
Definition at line 154 of file sata_dwc_460ex.c.
Definition at line 146 of file sata_dwc_460ex.c.
#define DMA_DISABLE_CHAN | ( | ch | ) | (0x00000000 | ((0x000000001 << (ch)) << 8)) |
Definition at line 144 of file sata_dwc_460ex.c.
#define DMA_ENABLE_CHAN | ( | ch | ) |
Definition at line 141 of file sata_dwc_460ex.c.
Definition at line 162 of file sata_dwc_460ex.c.
#define DMA_NUM_CHAN_REGS 8 |
Definition at line 51 of file sata_dwc_460ex.c.
#define DMA_NUM_CHANS 1 |
Definition at line 50 of file sata_dwc_460ex.c.
#define DRV_NAME "sata-dwc" |
Definition at line 46 of file sata_dwc_460ex.c.
#define DRV_VERSION "1.3" |
Definition at line 47 of file sata_dwc_460ex.c.
#define HSDEV_FROM_AP | ( | ap | ) |
Definition at line 295 of file sata_dwc_460ex.c.
#define HSDEV_FROM_HOST | ( | host | ) |
Definition at line 293 of file sata_dwc_460ex.c.
#define HSDEV_FROM_HSDEVP | ( | p | ) |
Definition at line 301 of file sata_dwc_460ex.c.
#define HSDEV_FROM_QC | ( | qc | ) |
Definition at line 299 of file sata_dwc_460ex.c.
#define HSDEVP_FROM_AP | ( | ap | ) |
Definition at line 297 of file sata_dwc_460ex.c.
#define SATA_DWC_DBTSR_MRD | ( | size | ) |
Definition at line 268 of file sata_dwc_460ex.c.
#define SATA_DWC_DBTSR_MWR | ( | size | ) | (((size)/4) & SATA_DWC_TXFIFO_DEPTH) |
Definition at line 267 of file sata_dwc_460ex.c.
#define SATA_DWC_DMACR_RX_CLEAR | ( | v | ) |
Definition at line 265 of file sata_dwc_460ex.c.
#define SATA_DWC_DMACR_TX_CLEAR | ( | v | ) |
Definition at line 263 of file sata_dwc_460ex.c.
#define SATA_DWC_QCMD_MAX 32 |
Definition at line 279 of file sata_dwc_460ex.c.
Definition at line 262 of file sata_dwc_460ex.c.
anonymous enum |
SATA_DWC_DMAC_LLI_SZ | |
SATA_DWC_DMAC_LLI_NUM | |
SATA_DWC_DMAC_LLI_TBL_SZ | |
SATA_DWC_DMAC_TWIDTH_BYTES | |
SATA_DWC_DMAC_CTRL_TSIZE_MAX |
Definition at line 121 of file sata_dwc_460ex.c.
anonymous enum |
Definition at line 132 of file sata_dwc_460ex.c.
anonymous enum |
Definition at line 169 of file sata_dwc_460ex.c.
anonymous enum |
Definition at line 233 of file sata_dwc_460ex.c.
anonymous enum |
SATA_DWC_CMD_ISSUED_NOT | |
SATA_DWC_CMD_ISSUED_PEND | |
SATA_DWC_CMD_ISSUED_EXEC | |
SATA_DWC_CMD_ISSUED_NODATA | |
SATA_DWC_DMA_PENDING_NONE | |
SATA_DWC_DMA_PENDING_TX | |
SATA_DWC_DMA_PENDING_RX |
Definition at line 304 of file sata_dwc_460ex.c.
MODULE_AUTHOR | ( | "Mark Miesfeld <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "DesignWare Cores SATA controller low lever driver" | ) |
MODULE_DEVICE_TABLE | ( | of | , |
sata_dwc_match | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | sata_dwc_driver | ) |
MODULE_VERSION | ( | DRV_VERSION | ) |
Definition at line 1592 of file sata_dwc_460ex.c.
struct sata_dwc_host_priv host_pvt |
Definition at line 324 of file sata_dwc_460ex.c.