#include <linux/module.h>
#include <linux/usb.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/dma-mapping.h>
#include <linux/mmc/host.h>
Go to the source code of this file.
|
enum | ushc_request {
USHC_GET_CAPS = 0x00,
USHC_HOST_CTRL = 0x01,
USHC_PWR_CTRL = 0x02,
USHC_CLK_FREQ = 0x03,
USHC_EXEC_CMD = 0x04,
USHC_READ_RESP = 0x05,
USHC_RESET = 0x06
} |
|
enum | ushc_request_type {
USHC_GET_CAPS_TYPE = USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
USHC_HOST_CTRL_TYPE = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
USHC_PWR_CTRL_TYPE = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
USHC_CLK_FREQ_TYPE = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
USHC_EXEC_CMD_TYPE = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
USHC_READ_RESP_TYPE = USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
USHC_RESET_TYPE = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE
} |
|
#define IGNORE_NEXT_INT 2 |
#define USHC_CBW_SIGNATURE 'C' |
#define USHC_CSW_SIGNATURE 'S' |
#define USHC_GET_CAPS_1V8 (1 << 10) |
#define USHC_GET_CAPS_3V0 (1 << 9) |
#define USHC_GET_CAPS_3V3 (1 << 8) |
#define USHC_GET_CAPS_HIGH_SPD (1 << 16) |
#define USHC_GET_CAPS_VERSION_MASK 0xff |
#define USHC_HOST_CTRL_4BIT (1 << 1) |
#define USHC_HOST_CTRL_HIGH_SPD (1 << 0) |
#define USHC_INT_STATUS_CARD_PRESENT (1 << 0) |
#define USHC_INT_STATUS_SDIO_INT (1 << 1) |
#define USHC_PWR_CTRL_1V8 0x03 |
#define USHC_PWR_CTRL_3V0 0x02 |
#define USHC_PWR_CTRL_3V3 0x01 |
#define USHC_PWR_CTRL_OFF 0x00 |
#define USHC_READ_RESP_BUSY (1 << 4) |
#define USHC_READ_RESP_ERR_CMD (1 << 0) |
#define USHC_READ_RESP_ERR_CRC (1 << 2) |
#define USHC_READ_RESP_ERR_DAT (1 << 1) |
#define USHC_READ_RESP_ERR_MASK 0x0f |
#define USHC_READ_RESP_ERR_TIMEOUT (1 << 3) |
- Enumerator:
USHC_GET_CAPS |
|
USHC_HOST_CTRL |
|
USHC_PWR_CTRL |
|
USHC_CLK_FREQ |
|
USHC_EXEC_CMD |
|
USHC_READ_RESP |
|
USHC_RESET |
|
Definition at line 26 of file ushc.c.
- Enumerator:
USHC_GET_CAPS_TYPE |
|
USHC_HOST_CTRL_TYPE |
|
USHC_PWR_CTRL_TYPE |
|
USHC_CLK_FREQ_TYPE |
|
USHC_EXEC_CMD_TYPE |
|
USHC_READ_RESP_TYPE |
|
USHC_RESET_TYPE |
|
Definition at line 36 of file ushc.c.
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
ushc_id_table |
|
|
) |
| |
module_usb_driver |
( |
ushc_driver |
| ) |
|