coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sata.c File Reference
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <delay.h>
#include <soc/rcba.h>
#include <soc/sata.h>
#include <soc/intel/broadwell/pch/chip.h>
#include <southbridge/intel/lynxpoint/iobp.h>
Include dependency graph for sata.c:

Go to the source code of this file.

Functions

static u32 sir_read (struct device *dev, int idx)
 
static void sir_write (struct device *dev, int idx, u32 value)
 
static void sata_init (struct device *dev)
 
static void sata_enable (struct device *dev)
 

Variables

static struct device_operations sata_ops
 
static const unsigned short pci_device_ids []
 
static const struct pci_driver pch_sata __pci_driver
 

Function Documentation

◆ sata_enable()

static void sata_enable ( struct device dev)
static

Definition at line 254 of file sata.c.

References config, config_of(), and pci_write_config16().

Here is the call graph for this function:

◆ sata_init()

◆ sir_read()

static u32 sir_read ( struct device dev,
int  idx 
)
inlinestatic

Definition at line 15 of file sata.c.

References pci_read_config32(), pci_write_config32(), SATA_SIRD, and SATA_SIRI.

Referenced by sata_init().

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

◆ sir_write()

static void sir_write ( struct device dev,
int  idx,
u32  value 
)
inlinestatic

Definition at line 21 of file sata.c.

References pci_write_config32(), SATA_SIRD, SATA_SIRI, and value.

Referenced by sata_init().

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

Variable Documentation

◆ __pci_driver

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

Definition at line 274 of file sata.c.

◆ pci_device_ids

const unsigned short pci_device_ids[]
static
Initial value:
= {
0x9c03, 0x9c05, 0x9c07, 0x9c0f,
0x9c83, 0x9c85, 0x282a, 0x9c87, 0x282a, 0x9c8f,
0
}

Definition at line 274 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 = sata_enable,
.ops_pci = &pci_dev_ops_pci,
}
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_enable(struct device *dev)
Definition: sata.c:254
static void sata_init(struct device *dev)
Definition: sata.c:27

Definition at line 254 of file sata.c.