Menuconfig Implementation and auto-qemu refactoring (#44)
[lunaix-os.git] / lunaix-os / hal / ahci / ata.c
index 877ed86c6f52f4cb39e73cf4f6ff355f719e54b8..c698348b1b7280403348818300ba15ba15c9c708 100644 (file)
@@ -9,7 +9,7 @@
 void
 sata_read_error(struct hba_port* port)
 {
-    uint32_t tfd = port->regs[HBA_RPxTFD];
+    u32_t tfd = port->regs[HBA_RPxTFD];
     port->device->last_result.sense_key = (tfd & 0xf000) >> 12;
     port->device->last_result.error = (tfd & 0x0f00) >> 8;
     port->device->last_result.status = tfd & 0x00ff;
@@ -28,7 +28,7 @@ sata_submit(struct hba_device* dev, struct blkio_req* io_req)
 
     header->options |= HBA_CMDH_WRITE * write;
 
-    uint16_t count = ICEIL(vbuf_size(io_req->vbuf), port->device->block_size);
+    u16_t count = ICEIL(vbuf_size(io_req->vbuf), port->device->block_size);
     struct sata_reg_fis* fis = (struct sata_reg_fis*)table->command_fis;
 
     if ((port->device->flags & HBA_DEV_FEXTLBA)) {