uint8_t alpha_pci_io_bwx_inb(bus_addr_t ioaddr) { struct alpha_bus_window *abw = alpha_pci_io_findwindow(ioaddr); uint8_t *port = (uint8_t *) ((char *)abw->abw_addr + (ioaddr - abw->abw_abst.abst_bus_start)); alpha_mb(); return (alpha_ldbu(port)); }
static inline uint8_t __C(CHIP,_mem_read_1)( void *v, bus_space_handle_t memh, bus_size_t off) { bus_addr_t addr; addr = memh + off; alpha_mb(); return (alpha_ldbu((uint8_t *)addr)); }