coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gma.c File Reference
Include dependency graph for gma.c:

Go to the source code of this file.

Macros

#define BASE_FREQUENCY   96000
 

Functions

static void gma_func0_init (struct device *dev)
 
static void gma_func0_disable (struct device *dev)
 
static void gma_generate_ssdt (const struct device *device)
 
static const char * gma_acpi_name (const struct device *dev)
 

Variables

static struct device_operations gma_func0_ops
 
static const unsigned short pci_device_ids []
 
static const struct pci_driver gma __pci_driver
 

Macro Definition Documentation

◆ BASE_FREQUENCY

#define BASE_FREQUENCY   96000

Definition at line 20 of file gma.c.

Function Documentation

◆ gma_acpi_name()

static const char* gma_acpi_name ( const struct device dev)
static

Definition at line 62 of file gma.c.

◆ gma_func0_disable()

static void gma_func0_disable ( struct device dev)
static

Definition at line 47 of file gma.c.

References D0F0_GGC, pci_or_config16(), and pcidev_on_root().

Here is the call graph for this function:

◆ gma_func0_init()

static void gma_func0_init ( struct device dev)
static

◆ gma_generate_ssdt()

static void gma_generate_ssdt ( const struct device device)
static

Definition at line 55 of file gma.c.

References chip, device::chip_info, and drivers_intel_gma_displays_ssdt_generate().

Here is the call graph for this function:

Variable Documentation

◆ __pci_driver

const struct pci_driver gma __pci_driver
static
Initial value:
= {
.ops = &gma_func0_ops,
.vendor = PCI_VID_INTEL,
.devices = pci_device_ids,
}
static const unsigned short pci_device_ids[]
Definition: gma.c:78
static struct device_operations gma_func0_ops
Definition: gma.c:67
#define PCI_VID_INTEL
Definition: pci_ids.h:2157

Definition at line 78 of file gma.c.

◆ gma_func0_ops

struct device_operations gma_func0_ops
static
Initial value:
= {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.acpi_fill_ssdt = gma_generate_ssdt,
.init = gma_func0_init,
.ops_pci = &pci_dev_ops_pci,
.vga_disable = gma_func0_disable,
.acpi_name = gma_acpi_name,
}
static const char * gma_acpi_name(const struct device *dev)
Definition: gma.c:62
static void gma_func0_init(struct device *dev)
Definition: gma.c:22
static void gma_func0_disable(struct device *dev)
Definition: gma.c:47
static void gma_generate_ssdt(const struct device *device)
Definition: gma.c:55
void pci_dev_enable_resources(struct device *dev)
Definition: pci_device.c:721
void pci_dev_read_resources(struct device *dev)
Definition: pci_device.c:534
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
Definition: pci_device.c:911
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691

Definition at line 62 of file gma.c.

◆ pci_device_ids

const unsigned short pci_device_ids[]
static
Initial value:
= {
0x2e02,
0x2e12,
0x2e22,
0x2e32,
0x2e42,
0x2e92,
0
}

Definition at line 78 of file gma.c.