|
#define | REALLY_SLOW_IO |
|
#define | DEBUGT 2 |
|
#define | DPRINT(format, args...) pr_info("floppy%d: " format, current_drive, ##args) |
|
#define | DCL_DEBUG /* debug disk change line */ |
|
#define | debug_dcl(test, fmt, args...) do { if ((test) & FD_DEBUG) DPRINT(fmt, ##args); } while (0) |
|
#define | FDPATCHES |
|
#define | K_64 0x10000 /* 64KB */ |
|
#define | fd_get_dma_residue() get_dma_residue(FLOPPY_DMA) |
|
#define | fd_dma_mem_free(addr, size) free_pages(addr, get_order(size)) |
|
#define | fd_dma_mem_alloc(size) __get_dma_pages(GFP_KERNEL, get_order(size)) |
|
#define | ITYPE(x) (((x) >> 2) & 0x1f) |
|
#define | TOMINOR(x) ((x & 3) | ((x & 4) << 5)) |
|
#define | UNIT(x) ((x) & 0x03) /* drive on fdc */ |
|
#define | FDC(x) (((x) & 0x04) >> 2) /* fdc of drive */ |
|
#define | REVDRIVE(fdc, unit) ((unit) + ((fdc) << 2)) |
|
#define | DP (&drive_params[current_drive]) |
|
#define | DRS (&drive_state[current_drive]) |
|
#define | DRWE (&write_errors[current_drive]) |
|
#define | FDCS (&fdc_state[fdc]) |
|
#define | UDP (&drive_params[drive]) |
|
#define | UDRS (&drive_state[drive]) |
|
#define | UDRWE (&write_errors[drive]) |
|
#define | UFDCS (&fdc_state[FDC(drive)]) |
|
#define | PH_HEAD(floppy, head) (((((floppy)->stretch & 2) >> 1) ^ head) << 2) |
|
#define | STRETCH(floppy) ((floppy)->stretch & FD_STRETCH) |
|
#define | COMMAND (raw_cmd->cmd[0]) |
|
#define | DR_SELECT (raw_cmd->cmd[1]) |
|
#define | TRACK (raw_cmd->cmd[2]) |
|
#define | HEAD (raw_cmd->cmd[3]) |
|
#define | SECTOR (raw_cmd->cmd[4]) |
|
#define | SIZECODE (raw_cmd->cmd[5]) |
|
#define | SECT_PER_TRACK (raw_cmd->cmd[6]) |
|
#define | GAP (raw_cmd->cmd[7]) |
|
#define | SIZECODE2 (raw_cmd->cmd[8]) |
|
#define | NR_RW 9 |
|
#define | F_SIZECODE (raw_cmd->cmd[2]) |
|
#define | F_SECT_PER_TRACK (raw_cmd->cmd[3]) |
|
#define | F_GAP (raw_cmd->cmd[4]) |
|
#define | F_FILL (raw_cmd->cmd[5]) |
|
#define | NR_F 6 |
|
#define | MAX_DISK_SIZE 4 /* 3984 */ |
|
#define | MAX_REPLIES 16 |
|
#define | ST0 (reply_buffer[0]) |
|
#define | ST1 (reply_buffer[1]) |
|
#define | ST2 (reply_buffer[2]) |
|
#define | ST3 (reply_buffer[0]) /* result of GETSTATUS */ |
|
#define | R_TRACK (reply_buffer[3]) |
|
#define | R_HEAD (reply_buffer[4]) |
|
#define | R_SECTOR (reply_buffer[5]) |
|
#define | R_SIZECODE (reply_buffer[6]) |
|
#define | SEL_DLY (2 * HZ / 100) |
|
#define | SECTSIZE (_FD_SECTSIZE(*floppy)) |
|
#define | FD_COMMAND_NONE -1 |
|
#define | FD_COMMAND_ERROR 2 |
|
#define | FD_COMMAND_OKAY 3 |
|
#define | NO_TRACK -1 |
|
#define | NEED_1_RECAL -2 |
|
#define | NEED_2_RECAL -3 |
|
#define | OLOGSIZE 20 |
|
#define | current_reqD -1 |
|
#define | MAXTIMEOUT -2 |
|
#define | INFBOUND(a, b) (a) = max_t(int, a, b) |
|
#define | SUPBOUND(a, b) (a) = min_t(int, a, b) |
|
#define | MORE_OUTPUT -2 |
|
#define | NOMINAL_DTR 500 |
|
#define | FM_MODE(x, y) ((y) & ~(((x)->rate & 0x80) >> 1)) |
|
#define | CT(x) ((x) | 0xc0) |
|
#define | ARRAY_END(X) (&((X)[ARRAY_SIZE(X)])) |
|