nb/intel/sandybridge: Get rid of device_t
Use of `device_t` has been abandoned in ramstage. Change-Id: I585aa48b99f4ef63905cab5d6d1502bfed0e6e42 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/23668 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
committed by
Patrick Georgi
parent
706aabcd4c
commit
ab8743c02e
@@ -662,7 +662,7 @@ static void gma_func0_init(struct device *dev)
|
||||
intel_gma_restore_opregion();
|
||||
}
|
||||
|
||||
static void gma_set_subsystem(device_t dev, unsigned vendor, unsigned device)
|
||||
static void gma_set_subsystem(struct device *dev, unsigned vendor, unsigned device)
|
||||
{
|
||||
if (!vendor || !device) {
|
||||
pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
|
||||
@@ -676,7 +676,7 @@ static void gma_set_subsystem(device_t dev, unsigned vendor, unsigned device)
|
||||
const struct i915_gpu_controller_info *
|
||||
intel_gma_get_controller_info(void)
|
||||
{
|
||||
device_t dev = dev_find_slot(0, PCI_DEVFN(0x2,0));
|
||||
struct device *dev = dev_find_slot(0, PCI_DEVFN(0x2,0));
|
||||
if (!dev) {
|
||||
return NULL;
|
||||
}
|
||||
@@ -684,7 +684,7 @@ intel_gma_get_controller_info(void)
|
||||
return &chip->gfx;
|
||||
}
|
||||
|
||||
static void gma_ssdt(device_t device)
|
||||
static void gma_ssdt(struct device *device)
|
||||
{
|
||||
const struct i915_gpu_controller_info *gfx = intel_gma_get_controller_info();
|
||||
if (!gfx) {
|
||||
@@ -729,7 +729,7 @@ static const char *gma_acpi_name(const struct device *dev)
|
||||
static void gma_func0_disable(struct device *dev)
|
||||
{
|
||||
u16 reg16;
|
||||
device_t dev_host = dev_find_slot(0, PCI_DEVFN(0,0));
|
||||
struct device *dev_host = dev_find_slot(0, PCI_DEVFN(0,0));
|
||||
|
||||
reg16 = pci_read_config16(dev_host, GGC);
|
||||
reg16 |= (1 << 1); /* disable VGA decode */
|
||||
|
Reference in New Issue
Block a user