Lines Matching refs:pi
50 struct pci_devinst *pi = arg; in pci_uart_intr_assert() local
52 pci_lintr_assert(pi); in pci_uart_intr_assert()
58 struct pci_devinst *pi = arg; in pci_uart_intr_deassert() local
60 pci_lintr_deassert(pi); in pci_uart_intr_deassert()
64 pci_uart_write(struct pci_devinst *pi, int baridx, uint64_t offset, int size, in pci_uart_write() argument
70 uart_ns16550_write(pi->pi_arg, offset, value); in pci_uart_write()
74 pci_uart_read(struct pci_devinst *pi, int baridx, uint64_t offset, int size) in pci_uart_read() argument
81 val = uart_ns16550_read(pi->pi_arg, offset); in pci_uart_read()
95 pci_uart_init(struct pci_devinst *pi, nvlist_t *nvl) in pci_uart_init() argument
100 pci_emul_alloc_bar(pi, 0, PCIBAR_IO, UART_NS16550_IO_BAR_SIZE); in pci_uart_init()
101 pci_lintr_request(pi); in pci_uart_init()
104 pci_set_cfgdata16(pi, PCIR_DEVICE, COM_DEV); in pci_uart_init()
105 pci_set_cfgdata16(pi, PCIR_VENDOR, COM_VENDOR); in pci_uart_init()
106 pci_set_cfgdata8(pi, PCIR_CLASS, PCIC_SIMPLECOMM); in pci_uart_init()
109 pi); in pci_uart_init()
110 pi->pi_arg = sc; in pci_uart_init()
115 "pci uart at %d:%d", device, pi->pi_slot, pi->pi_func); in pci_uart_init()