UPSTREAM: southbridge/intel/i3100: transition away from device_t
Replace the use of the old device_t definition inside southbridge/intel/i3100. BUG=None BRANCH=None TEST=None Signed-off-by: Antonello Dettori <dev@dettori.io> Reviewed-on: https://review.coreboot.org/16482 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Change-Id: Ic9616d5135cfb7206e086e51aaf82eb66540c4bb Reviewed-on: https://chromium-review.googlesource.com/384956 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
3589421b1a
commit
eae4c1aa6e
2 changed files with 3 additions and 1 deletions
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
static void enable_smbus(void)
|
||||
{
|
||||
device_t dev = PCI_DEV(0x0, 0x1f, 0x3);
|
||||
pci_devfn_t dev = PCI_DEV(0x0, 0x1f, 0x3);
|
||||
|
||||
printk(BIOS_SPEW, "SMBus controller enabled\n");
|
||||
pci_write_config32(dev, 0x20, SMBUS_IO_BASE | 1);
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@
|
|||
#define SATA_MODE_IDE 0x00
|
||||
#define SATA_MODE_AHCI 0x01
|
||||
|
||||
#ifndef __SIMPLE_DEVICE__
|
||||
void i3100_enable(device_t dev);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue