Import 2.3.9pre5
[davej-history.git] / drivers / block / pdc4030.h
blob9f08da5aae229f3cb330f0d543799ae1a3862761
1 /*
2 * linux/drivers/block/pdc4030.h
4 * Copyright (C) 1995-1998 Linus Torvalds & authors
5 */
7 /*
8 * Principal author: Peter Denison <peterd@pnd-pc.demon.co.uk>
9 */
11 #ifndef IDE_PROMISE_H
12 #define IDE_PROMISE_H
14 #define PROMISE_EXTENDED_COMMAND 0xF0
15 #define PROMISE_READ 0xF2
16 #define PROMISE_WRITE 0xF3
17 /* Extended commands - main command code = 0xf0 */
18 #define PROMISE_GET_CONFIG 0x10
19 #define PROMISE_IDENTIFY 0x20
21 struct translation_mode {
22 u16 cyl;
23 u8 head;
24 u8 sect;
27 struct dc_ident {
28 u8 type;
29 u8 unknown1;
30 u8 hw_revision;
31 u8 firmware_major;
32 u8 firmware_minor;
33 u8 bios_address;
34 u8 irq;
35 u8 unknown2;
36 u16 cache_mem;
37 u16 unknown3;
38 u8 id[2];
39 u16 info;
40 struct translation_mode current_tm[4];
41 u8 pad[SECTOR_WORDS*4 - 32];
44 #endif IDE_PROMISE_H