|
AquilaOS documentation
How it works, and its code
|
Go to the source code of this file.
Functions | |
| static uintptr_t | io_reg (struct ioaddr *io, uintptr_t off) |
| Returns the kernel address of register off. | |
| static uint8_t | io_in8 (struct ioaddr *io, uintptr_t off) |
| Reads an 8-, 16- or 32-bit register. | |
| static uint16_t | io_in16 (struct ioaddr *io, uintptr_t off) |
| static uint32_t | io_in32 (struct ioaddr *io, uintptr_t off) |
| static void | io_out8 (struct ioaddr *io, uintptr_t off, uint8_t val) |
| Writes an 8-, 16- or 32-bit register. | |
| static void | io_out16 (struct ioaddr *io, uintptr_t off, uint16_t val) |
| static void | io_out32 (struct ioaddr *io, uintptr_t off, uint32_t val) |
| static uint32_t | mmio_read32 (uintptr_t addr) |
| Reads, or writes, a 32-bit register at a kernel address. | |
| static void | mmio_write32 (uintptr_t addr, uint32_t val) |
Definition at line 33 of file io.h.
References io_in16(), and io_reg().
Referenced by ata_detect_drive(), io_in16(), and pm1_read().
Definition at line 38 of file io.h.
References io_in32(), and io_reg().
Referenced by io_in32(), pci_conf1_read(), pci_ecam_read(), pl011_irq(), pl011_receive(), pl011_transmit(), and reg_read().
Reads an 8-, 16- or 32-bit register.
Definition at line 28 of file io.h.
References io_in8(), and io_reg().
Referenced by ata_detect_drive(), ata_drive_present(), ata_poll(), ata_reset(), ata_wait(), cmos_reg_read(), dma_complete(), dma_irq(), dma_transfer(), i8042_init(), i8042_irq(), io_in8(), read_status(), read_wait(), serial_empty(), serial_init(), serial_received(), serial_tx_empty(), uart_8250_comm_init(), uart_8250_present(), uart_8250_receive(), x86_pic_probe(), and x86_pit_delay().
Definition at line 49 of file io.h.
References io_out16(), and io_reg().
Referenced by io_out16(), and pm1_write().
Definition at line 54 of file io.h.
References io_out32(), and io_reg().
Referenced by conf1_select(), dma_transfer(), io_out32(), pci_conf1_write(), pci_ecam_write(), pl011_comm_init(), pl011_irq(), pl011_transmit(), and reg_write().
Writes an 8-, 16- or 32-bit register.
Definition at line 44 of file io.h.
References io_out8(), and io_reg().
Referenced by ata_detect_drive(), ata_reset(), ata_select_drive(), ata_setup(), aux_enable(), cmos_reg_read(), dma_complete(), dma_transfer(), earlycon_vga_init(), i8042_aux_write(), i8042_reboot(), io_out8(), pic_chip_eoi(), pio_flush(), pio_read_sectors(), pio_write_sectors(), serial_chr(), serial_init(), uart_8250_comm_init(), uart_8250_present(), uart_8250_transmit(), vga_cursor(), x86_acpi_poweroff(), x86_irq_mask(), x86_irq_remap(), x86_irq_unmask(), x86_pic_disable(), x86_pic_probe(), x86_pit_delay(), and x86_pit_period_set().
Returns the kernel address of register off.
Definition at line 15 of file io.h.
References ioaddr::addr, io_reg(), IOADDR_MMIO16, IOADDR_MMIO32, and ioaddr::type.
Referenced by io_in16(), io_in32(), io_in8(), io_out16(), io_out32(), io_out8(), and io_reg().