coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sata.c File Reference
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <device/pci_ids.h>
#include "chip.h"
#include "i82801gx.h"
#include "sata.h"
Include dependency graph for sata.c:

Go to the source code of this file.

Functions

static u8 get_ich7_sata_ports (void)
 
void sata_enable (struct device *dev)
 
static void sata_init (struct device *dev)
 

Variables

static struct device_operations sata_ops
 
static const unsigned short sata_ids []
 
static const struct pci_driver i82801gx_sata_driver __pci_driver
 

Function Documentation

◆ get_ich7_sata_ports()

static u8 get_ich7_sata_ports ( void  )
static

Definition at line 12 of file sata.c.

References BIOS_ERR, PCI_DEVICE_ID, pci_read_config16(), pcidev_on_root(), and printk.

Referenced by sata_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sata_enable()

void sata_enable ( struct device dev)

◆ sata_init()

Variable Documentation

◆ __pci_driver

const struct pci_driver i82801gx_sata_driver __pci_driver
static
Initial value:
= {
.ops = &sata_ops,
.vendor = PCI_VID_INTEL,
.devices = sata_ids,
}
#define PCI_VID_INTEL
Definition: pci_ids.h:2157
static struct device_operations sata_ops
Definition: sata.c:200
static const unsigned short sata_ids[]
Definition: sata.c:209

Definition at line 209 of file sata.c.

◆ sata_ids

const unsigned short sata_ids[]
static
Initial value:
= {
0x27c0,
0x27c1,
0x27c4,
0x27c5,
0x27c3,
0x27c6,
0
}

Definition at line 209 of file sata.c.

◆ sata_ops

struct device_operations sata_ops
static
Initial value:
= {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = sata_init,
.enable = i82801gx_enable,
.ops_pci = &pci_dev_ops_pci,
}
void i82801gx_enable(struct device *dev)
Definition: i82801gx.c:54
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
static void sata_init(struct device *dev)
Definition: sata.c:70

Definition at line 70 of file sata.c.