X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/3b6a05fc894d0c1a3d431045ee5a53955ba093a0..35a7d633d3f16c1e0539af6ca5d8e7482926cd93:/lunaix-os/hal/ahci/ata.c diff --git a/lunaix-os/hal/ahci/ata.c b/lunaix-os/hal/ahci/ata.c index 877ed86..c698348 100644 --- a/lunaix-os/hal/ahci/ata.c +++ b/lunaix-os/hal/ahci/ata.c @@ -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)) {