mainboard/asus/*: transition away from device_t

Replace the use of the old device_t definition inside
mainboard/asus/*.

Change-Id: I5ddfba2102854adcc9bbfd75f7acbe76f0152b72
Signed-off-by: Antonello Dettori <dev@dettori.io>
Reviewed-on: https://review.coreboot.org/16438
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Antonello Dettori 2016-09-03 10:47:40 +02:00 committed by Martin Roth
parent e889b19ba0
commit 837618bf20
9 changed files with 12 additions and 12 deletions

View File

@ -84,7 +84,7 @@ void soft_reset(void)
unsigned int get_sbdn(unsigned bus)
{
device_t dev;
pci_devfn_t dev;
dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_VT8237R_LPC), bus);

View File

@ -84,7 +84,7 @@ void soft_reset(void)
unsigned int get_sbdn(unsigned bus)
{
device_t dev;
pci_devfn_t dev;
dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_VT8237R_LPC), bus);

View File

@ -62,7 +62,7 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
{
u32 val;
u8 byte;
device_t dev;
pci_devfn_t dev;
#if IS_ENABLED(CONFIG_POST_DEVICE_PCI_PCIE)
hudson_pci_port80();

View File

@ -82,7 +82,7 @@ void soft_reset(void)
unsigned int get_sbdn(unsigned bus)
{
device_t dev;
pci_devfn_t dev;
dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_VT8237R_LPC), bus);

View File

@ -82,7 +82,7 @@ static inline int spd_read_byte(unsigned device, unsigned address)
*/
unsigned int get_sbdn(unsigned bus)
{
device_t dev;
pci_devfn_t dev;
dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_NVIDIA,
PCI_DEVICE_ID_NVIDIA_CK804_PRO), bus);
@ -133,7 +133,7 @@ static void ck804_control(const unsigned int* values, u32 size, uint8_t bus_unit
for (i = 0; i < 4; i++) {
u32 id;
device_t dev;
pci_devfn_t dev;
if (i == 0) /* SB chain */
dev = PCI_DEV(i * 0x40, bus_unit_id, 0);
else

View File

@ -80,7 +80,7 @@ static inline int spd_read_byte(unsigned device, unsigned address)
*/
unsigned int get_sbdn(unsigned bus)
{
device_t dev;
pci_devfn_t dev;
dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_NVIDIA,
PCI_DEVICE_ID_NVIDIA_CK804_PRO), bus);
@ -131,7 +131,7 @@ static void ck804_control(const unsigned int* values, u32 size, uint8_t bus_unit
for (i = 0; i < 4; i++) {
u32 id;
device_t dev;
pci_devfn_t dev;
if (i == 0) /* SB chain */
dev = PCI_DEV(i * 0x40, bus_unit_id, 0);
else

View File

@ -76,7 +76,7 @@ static void sio_setup(void)
{
u8 byte;
u32 dword;
device_t dev = PCI_DEV(0, MCP55_DEVN_BASE + 1, 0); /* LPC */
pci_devfn_t dev = PCI_DEV(0, MCP55_DEVN_BASE + 1, 0); /* LPC */
/* Subject decoding */
byte = pci_read_config8(dev, 0x7b);

View File

@ -101,7 +101,7 @@ void soft_reset(void)
unsigned int get_sbdn(unsigned bus)
{
device_t dev;
pci_devfn_t dev;
dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_VT8237R_LPC), bus);

View File

@ -85,7 +85,7 @@ void soft_reset(void)
unsigned int get_sbdn(unsigned bus)
{
device_t dev;
pci_devfn_t dev;
dev = pci_locate_device_on_bus(PCI_ID(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_VT8237R_LPC), bus);
@ -183,7 +183,7 @@ static void m2v_it8712f_gpio_init(void)
static void m2v_bus_init(void)
{
device_t dev;
pci_devfn_t dev;
printk(BIOS_SPEW, "m2v_bus_init\n");