Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | ms_status_register |
struct | ms_id_register |
struct | ms_param_register |
struct | ms_extra_data_register |
struct | ms_register |
struct | mspro_param_register |
struct | mspro_io_info_register |
struct | mspro_io_func_register |
struct | mspro_io_cmd_register |
struct | mspro_register |
struct | ms_register_addr |
struct | memstick_device_id |
struct | memstick_request |
struct | memstick_dev |
struct | memstick_host |
struct | memstick_driver |
Functions | |
struct ms_status_register | __attribute__ ((packed)) |
int | memstick_register_driver (struct memstick_driver *drv) |
void | memstick_unregister_driver (struct memstick_driver *drv) |
struct memstick_host * | memstick_alloc_host (unsigned int extra, struct device *dev) |
int | memstick_add_host (struct memstick_host *host) |
void | memstick_remove_host (struct memstick_host *host) |
void | memstick_free_host (struct memstick_host *host) |
void | memstick_detect_change (struct memstick_host *host) |
void | memstick_suspend_host (struct memstick_host *host) |
void | memstick_resume_host (struct memstick_host *host) |
void | memstick_init_req_sg (struct memstick_request *mrq, unsigned char tpc, const struct scatterlist *sg) |
void | memstick_init_req (struct memstick_request *mrq, unsigned char tpc, const void *buf, size_t length) |
int | memstick_next_req (struct memstick_host *host, struct memstick_request **mrq) |
void | memstick_new_req (struct memstick_host *host) |
int | memstick_set_rw_addr (struct memstick_dev *card) |
#define MEMSTICK_CAP_AUTO_GET_INT 1 |
Definition at line 279 of file memstick.h.
#define MEMSTICK_CAP_PAR4 2 |
Definition at line 280 of file memstick.h.
#define MEMSTICK_CAP_PAR8 4 |
Definition at line 281 of file memstick.h.
#define MEMSTICK_CATEGORY_IO 0x01 |
Definition at line 228 of file memstick.h.
#define MEMSTICK_CATEGORY_IO_PRO 0x10 |
Definition at line 229 of file memstick.h.
#define MEMSTICK_CATEGORY_STORAGE 0xff |
Definition at line 226 of file memstick.h.
#define MEMSTICK_CATEGORY_STORAGE_DUO 0x00 |
Definition at line 227 of file memstick.h.
#define MEMSTICK_CLASS_DUO 0x00 |
Definition at line 233 of file memstick.h.
#define MEMSTICK_CLASS_FLASH 0xff |
Definition at line 232 of file memstick.h.
#define MEMSTICK_CLASS_RO 0x02 |
Definition at line 235 of file memstick.h.
#define MEMSTICK_CLASS_ROM 0x01 |
Definition at line 234 of file memstick.h.
#define MEMSTICK_CLASS_WP 0x03 |
Definition at line 236 of file memstick.h.
#define MEMSTICK_CP_BLOCK 0x00 |
Definition at line 79 of file memstick.h.
#define MEMSTICK_CP_EXTRA 0x40 |
Definition at line 81 of file memstick.h.
#define MEMSTICK_CP_OVERWRITE 0x80 |
Definition at line 82 of file memstick.h.
#define MEMSTICK_CP_PAGE 0x20 |
Definition at line 80 of file memstick.h.
#define MEMSTICK_INT_BREQ 0x20 |
Definition at line 54 of file memstick.h.
#define MEMSTICK_INT_CED 0x80 |
Definition at line 56 of file memstick.h.
#define MEMSTICK_INT_CMDNAK 0x01 |
Definition at line 51 of file memstick.h.
#define MEMSTICK_INT_ERR 0x40 |
Definition at line 55 of file memstick.h.
#define MEMSTICK_INT_IOBREQ 0x10 |
Definition at line 53 of file memstick.h.
#define MEMSTICK_INT_IOREQ 0x08 |
Definition at line 52 of file memstick.h.
#define MEMSTICK_MANAGEMENT_ATFLG 0x08 |
Definition at line 96 of file memstick.h.
#define MEMSTICK_MANAGEMENT_SCMS0 0x20 |
Definition at line 98 of file memstick.h.
#define MEMSTICK_MANAGEMENT_SCMS1 0x10 |
Definition at line 97 of file memstick.h.
#define MEMSTICK_MANAGEMENT_SYSFLG 0x04 |
Definition at line 95 of file memstick.h.
#define MEMSTICK_MATCH_ALL 0x01 |
Definition at line 218 of file memstick.h.
#define MEMSTICK_OVERWRITE_BKST 0x80 |
Definition at line 92 of file memstick.h.
#define MEMSTICK_OVERWRITE_PGST0 0x40 |
Definition at line 91 of file memstick.h.
#define MEMSTICK_OVERWRITE_PGST1 0x20 |
Definition at line 90 of file memstick.h.
#define MEMSTICK_OVERWRITE_UDST 0x10 |
Definition at line 89 of file memstick.h.
#define MEMSTICK_PAR4 1 |
Definition at line 210 of file memstick.h.
#define MEMSTICK_PAR8 2 |
Definition at line 211 of file memstick.h.
#define MEMSTICK_POWER_OFF 0 |
Definition at line 206 of file memstick.h.
#define MEMSTICK_POWER_ON 1 |
Definition at line 207 of file memstick.h.
#define MEMSTICK_SERIAL 0 |
Definition at line 209 of file memstick.h.
#define MEMSTICK_STATUS0_BE 0x20 |
Definition at line 62 of file memstick.h.
#define MEMSTICK_STATUS0_BF 0x10 |
Definition at line 61 of file memstick.h.
#define MEMSTICK_STATUS0_FB0 0x40 |
Definition at line 63 of file memstick.h.
#define MEMSTICK_STATUS0_MB 0x80 |
Definition at line 64 of file memstick.h.
#define MEMSTICK_STATUS0_SL 0x02 |
Definition at line 60 of file memstick.h.
#define MEMSTICK_STATUS0_WP 0x01 |
Definition at line 59 of file memstick.h.
#define MEMSTICK_STATUS1_DTER 0x20 |
Definition at line 72 of file memstick.h.
#define MEMSTICK_STATUS1_EXER 0x08 |
Definition at line 70 of file memstick.h.
#define MEMSTICK_STATUS1_FB1 0x40 |
Definition at line 73 of file memstick.h.
#define MEMSTICK_STATUS1_FGER 0x02 |
Definition at line 68 of file memstick.h.
#define MEMSTICK_STATUS1_MB 0x80 |
Definition at line 74 of file memstick.h.
#define MEMSTICK_STATUS1_UCDT 0x10 |
Definition at line 71 of file memstick.h.
#define MEMSTICK_STATUS1_UCEX 0x04 |
Definition at line 69 of file memstick.h.
#define MEMSTICK_STATUS1_UCFG 0x01 |
Definition at line 67 of file memstick.h.
#define MEMSTICK_SYS_BAMD 0x80 |
Definition at line 74 of file memstick.h.
#define MEMSTICK_SYS_PAM 0x08 |
Definition at line 73 of file memstick.h.
#define MEMSTICK_SYS_PAR4 0x00 |
Definition at line 108 of file memstick.h.
#define MEMSTICK_SYS_PAR8 0x40 |
Definition at line 109 of file memstick.h.
#define MEMSTICK_SYS_SERIAL 0x80 |
Definition at line 110 of file memstick.h.
#define MEMSTICK_TYPE_DUO 0x00 |
Definition at line 222 of file memstick.h.
#define MEMSTICK_TYPE_LEGACY 0xff |
Definition at line 221 of file memstick.h.
#define MEMSTICK_TYPE_PRO 0x01 |
Definition at line 223 of file memstick.h.
enum memstick_command |
Definition at line 170 of file memstick.h.
enum memstick_param |
Definition at line 204 of file memstick.h.
enum memstick_tpc |
Definition at line 150 of file memstick.h.
|
read |
mcontroller : adapter info structure for old mimd_t apps
: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id
Definition at line 171 of file esd_usb2.c.
int memstick_add_host | ( | struct memstick_host * | host | ) |
memstick_add_host - start request processing on memstick host - host to use
Definition at line 511 of file memstick.c.
|
read |
memstick_alloc_host - allocate a memstick_host structure : size of the user private data to allocate : parent device of the host
Definition at line 490 of file memstick.c.
void memstick_detect_change | ( | struct memstick_host * | host | ) |
memstick_detect_change - schedule media detection on memstick host - host to use
Definition at line 210 of file memstick.c.
void memstick_free_host | ( | struct memstick_host * | host | ) |
memstick_free_host - free memstick host - host to use
Definition at line 569 of file memstick.c.
void memstick_init_req | ( | struct memstick_request * | mrq, |
unsigned char | tpc, | ||
const void * | buf, | ||
size_t | length | ||
) |
memstick_init_req - set request fields needed for short data transfer - request to use - memstick Transport Protocol Command - TPC argument buffer - TPC argument size
The intended use of this function (transfer of data items several bytes in size) allows us to just copy the value between request structure and user supplied buffer.
Definition at line 298 of file memstick.c.
void memstick_init_req_sg | ( | struct memstick_request * | mrq, |
unsigned char | tpc, | ||
const struct scatterlist * | sg | ||
) |
memstick_init_req_sg - set request fields needed for bulk data transfer - request to use - memstick Transport Protocol Command - TPC argument
Definition at line 268 of file memstick.c.
void memstick_new_req | ( | struct memstick_host * | host | ) |
memstick_new_req - notify the host that some requests are pending - host to use
Definition at line 252 of file memstick.c.
int memstick_next_req | ( | struct memstick_host * | host, |
struct memstick_request ** | mrq | ||
) |
memstick_next_req - called by host driver to obtain next request to process - host to use - pointer to stick the request to
Host calls this function from idle state (*mrq == NULL) or after finishing previous request (*mrq should point to it). If previous request was unsuccessful, it is retried for predetermined number of times. Return value of 0 means that new request was assigned to the host.
Definition at line 226 of file memstick.c.
int memstick_register_driver | ( | struct memstick_driver * | drv | ) |
Definition at line 606 of file memstick.c.
void memstick_remove_host | ( | struct memstick_host * | host | ) |
memstick_remove_host - stop request processing on memstick host - host to use
Definition at line 548 of file memstick.c.
void memstick_resume_host | ( | struct memstick_host * | host | ) |
memstick_resume_host - notify bus driver of host resumption - host to use
Definition at line 592 of file memstick.c.
int memstick_set_rw_addr | ( | struct memstick_dev * | card | ) |
memstick_set_rw_addr - issue SET_RW_REG_ADDR request and wait for it to complete - media device to use
Definition at line 371 of file memstick.c.
void memstick_suspend_host | ( | struct memstick_host * | host | ) |
memstick_suspend_host - notify bus driver of host suspension - host to use
Definition at line 580 of file memstick.c.
void memstick_unregister_driver | ( | struct memstick_driver * | drv | ) |
Definition at line 614 of file memstick.c.
unsigned short block_address |
Definition at line 77 of file memstick.h.
unsigned char block_address_msb |
Definition at line 76 of file memstick.h.
unsigned char card_opt_info |
Definition at line 118 of file memstick.h.
unsigned char category |
Definition at line 58 of file memstick.h.
Definition at line 59 of file memstick.h.
unsigned char cp |
Definition at line 78 of file memstick.h.
unsigned char current_req |
Definition at line 117 of file memstick.h.
unsigned int data_address |
Definition at line 113 of file memstick.h.
unsigned short data_count |
Definition at line 112 of file memstick.h.
struct ms_extra_data_register extra_data |
Definition at line 100 of file memstick.h.
unsigned char func_enable |
Definition at line 122 of file memstick.h.
unsigned char func_intmask |
Definition at line 124 of file memstick.h.
unsigned char func_select |
Definition at line 123 of file memstick.h.
Definition at line 97 of file memstick.h.
unsigned char if_mode |
Definition at line 57 of file memstick.h.
unsigned char interrupt |
Definition at line 50 of file memstick.h.
unsigned char io_category |
Definition at line 116 of file memstick.h.
struct mspro_io_cmd_register io_cmd |
Definition at line 150 of file memstick.h.
struct mspro_io_func_register io_func |
Definition at line 148 of file memstick.h.
struct mspro_io_info_register io_info |
Definition at line 147 of file memstick.h.
unsigned char io_int |
Definition at line 151 of file memstick.h.
unsigned char io_int_func |
Definition at line 152 of file memstick.h.
unsigned short logical_address |
Definition at line 100 of file memstick.h.
unsigned char management_flag |
Definition at line 94 of file memstick.h.
unsigned char overwrite_flag |
Definition at line 88 of file memstick.h.
unsigned char page_address |
Definition at line 84 of file memstick.h.
Definition at line 99 of file memstick.h.
unsigned char r_length |
Definition at line 150 of file memstick.h.
unsigned char r_offset |
Definition at line 149 of file memstick.h.
unsigned char rdy_wait_time |
Definition at line 119 of file memstick.h.
unsigned char reserved[8] |
Definition at line 49 of file memstick.h.
unsigned char reserved0[8] |
Definition at line 144 of file memstick.h.
unsigned char reserved1[8] |
Definition at line 146 of file memstick.h.
unsigned char reserved2[7] |
Definition at line 149 of file memstick.h.
Definition at line 96 of file memstick.h.
unsigned char status0 |
Definition at line 58 of file memstick.h.
unsigned char status1 |
Definition at line 66 of file memstick.h.
unsigned char system |
Definition at line 72 of file memstick.h.
unsigned short tpc_param |
Definition at line 114 of file memstick.h.
unsigned char transfer_mode |
Definition at line 125 of file memstick.h.
Definition at line 56 of file memstick.h.
unsigned char version |
Definition at line 115 of file memstick.h.
unsigned char w_length |
Definition at line 152 of file memstick.h.
unsigned char w_offset |
Definition at line 151 of file memstick.h.