pci_lpc.c (d7b72f7b52f902da47cc7210a9121f4caabbcb9c) | pci_lpc.c (4f3f3e9a1dee62c031fa67cfe64e11d6dd3fab1b) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2013 Neel Natu <neel@freebsd.org> 5 * Copyright (c) 2013 Tycho Nightingale <tycho.nightingale@pluribusnetworks.com> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 132 unchanged lines hidden (view full) --- 141 142done: 143 free(cpy); 144 145 return (error); 146} 147 148void | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2013 Neel Natu <neel@freebsd.org> 5 * Copyright (c) 2013 Tycho Nightingale <tycho.nightingale@pluribusnetworks.com> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 132 unchanged lines hidden (view full) --- 141 142done: 143 free(cpy); 144 145 return (error); 146} 147 148void |
149lpc_print_supported_devices() | 149lpc_print_supported_devices(void) |
150{ 151 size_t i; 152 153 printf("bootrom\n"); 154 for (i = 0; i < LPC_UART_NUM; i++) 155 printf("%s\n", lpc_uart_names[i]); 156 printf("%s\n", pctestdev_getname()); 157} --- 358 unchanged lines hidden (view full) --- 516 return; 517 518 for (pin = 0; pin < 4; pin++) 519 pci_set_cfgdata8(lpc_bridge, 0x60 + pin, pirq_read(pin + 1)); 520 for (pin = 0; pin < 4; pin++) 521 pci_set_cfgdata8(lpc_bridge, 0x68 + pin, pirq_read(pin + 5)); 522} 523 | 150{ 151 size_t i; 152 153 printf("bootrom\n"); 154 for (i = 0; i < LPC_UART_NUM; i++) 155 printf("%s\n", lpc_uart_names[i]); 156 printf("%s\n", pctestdev_getname()); 157} --- 358 unchanged lines hidden (view full) --- 516 return; 517 518 for (pin = 0; pin < 4; pin++) 519 pci_set_cfgdata8(lpc_bridge, 0x60 + pin, pirq_read(pin + 1)); 520 for (pin = 0; pin < 4; pin++) 521 pci_set_cfgdata8(lpc_bridge, 0x68 + pin, pirq_read(pin + 5)); 522} 523 |
524struct pci_devemu pci_de_lpc = { | 524static const struct pci_devemu pci_de_lpc = { |
525 .pe_emu = "lpc", 526 .pe_init = pci_lpc_init, 527 .pe_write_dsdt = pci_lpc_write_dsdt, 528 .pe_cfgwrite = pci_lpc_cfgwrite, 529 .pe_barwrite = pci_lpc_write, 530 .pe_barread = pci_lpc_read 531}; 532PCI_EMUL_SET(pci_de_lpc); | 525 .pe_emu = "lpc", 526 .pe_init = pci_lpc_init, 527 .pe_write_dsdt = pci_lpc_write_dsdt, 528 .pe_cfgwrite = pci_lpc_cfgwrite, 529 .pe_barwrite = pci_lpc_write, 530 .pe_barread = pci_lpc_read 531}; 532PCI_EMUL_SET(pci_de_lpc); |