Lines Matching refs:u32
22 pub const HBA_PORT_CMD_CR: u32 = 1 << 15;
23 pub const HBA_PORT_CMD_FR: u32 = 1 << 14;
24 pub const HBA_PORT_CMD_FRE: u32 = 1 << 4;
25 pub const HBA_PORT_CMD_ST: u32 = 1;
27 pub const HBA_PORT_IS_ERR: u32 = 1 << 30 | 1 << 29 | 1 << 28 | 1 << 27;
28 pub const HBA_SSTS_PRESENT: u32 = 0x3;
29 pub const HBA_SIG_ATA: u32 = 0x00000101;
30 pub const HBA_SIG_ATAPI: u32 = 0xEB140101;
31 pub const HBA_SIG_PM: u32 = 0x96690101;
32 pub const HBA_SIG_SEMB: u32 = 0xC33C0101;
38 Unknown(u32),
50 pub is: u32, // 0x10, interrupt status
51 pub ie: u32, // 0x14, interrupt enable
52 pub cmd: u32, // 0x18, command and status
53 pub _rsv0: u32, // 0x1C, Reserved
54 pub tfd: u32, // 0x20, task file data
55 pub sig: u32, // 0x24, signature
56 pub ssts: u32, // 0x28, SATA status (SCR0:SStatus)
57 pub sctl: u32, // 0x2C, SATA control (SCR2:SControl)
58 pub serr: u32, // 0x30, SATA error (SCR1:SError)
59 pub sact: u32, // 0x34, SATA active (SCR3:SActive)
60 pub ci: u32, // 0x38, command issue
61 pub sntf: u32, // 0x3C, SATA notification (SCR4:SNotification)
62 pub fbs: u32, // 0x40, FIS-based switch control
63 pub _rsv1: [u32; 11], // 0x44 ~ 0x6F, Reserved
64 pub vendor: [u32; 4], // 0x70 ~ 0x7F, vendor specific
70 pub cap: u32, // 0x00, Host capability
71 pub ghc: u32, // 0x04, Global host control
72 pub is: u32, // 0x08, Interrupt status
73 pub pi: u32, // 0x0C, Port implemented
74 pub vs: u32, // 0x10, Version
75 pub ccc_ctl: u32, // 0x14, Command completion coalescing control
76 pub ccc_pts: u32, // 0x18, Command completion coalescing ports
77 pub em_loc: u32, // 0x1C, Enclosure management location
78 pub em_ctl: u32, // 0x20, Enclosure management control
79 pub cap2: u32, // 0x24, Host capabilities extended
80 pub bohc: u32, // 0x28, BIOS/OS handoff control and status
91 _rsv0: u32, // Reserved
92 pub dbc: u32, // Byte count, 4M max, interrupt = 1
120 pub _prdbc: u32, // Physical region descriptor byte count transferred
124 pub _rsv1: [u32; 4], // Reserved
150 let val: u32 = volatile_read!(self.cmd) | HBA_PORT_CMD_FRE | HBA_PORT_CMD_ST; in start()
160 (u32::MAX ^ HBA_PORT_CMD_ST) & volatile_read!(self.cmd) in stop()
174 (u32::MAX ^ HBA_PORT_CMD_FRE) & volatile_read!(self.cmd) in stop()
180 pub fn find_cmdslot(&self) -> Option<u32> { in find_cmdslot() argument
398 pub rsv3: u32, // More reserved
401 pub dma_buffer_offset: u32, // Byte offset into buffer. First 2 bits must be 0
404 pub transfer_count: u32, // Number of bytes to transfer. Bit 0 must be 0
407 pub rsv6: u32, // Reserved