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 <soc/pci_devs.h>
#include <soc/ramstage.h>
#include <soc/sata.h>
#include <console/console.h>
#include <delay.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include "chip.h"
Include dependency graph for sata.c:

Go to the source code of this file.

Typedefs

typedef struct soc_intel_baytrail_config config_t
 

Functions

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 baytrail_sata __pci_driver
 

Typedef Documentation

◆ config_t

Definition at line 1 of file sata.c.

Function Documentation

◆ sata_enable()

static void sata_enable ( struct device dev)
static

Definition at line 139 of file sata.c.

References config, config_of(), pci_read_config16(), pci_read_config32(), pci_read_config8(), pci_write_config16(), pci_write_config32(), pci_write_config8(), sir_write(), and southcluster_enable_dev().

Referenced by i82801gx_enable().

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

◆ sata_init()

static void sata_init ( struct device dev)
static

◆ sir_write()

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

Definition at line 18 of file sata.c.

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

Referenced by sata_enable().

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

Variable Documentation

◆ __pci_driver

const struct pci_driver baytrail_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:195
static const unsigned short pci_device_ids[]
Definition: sata.c:204

Definition at line 204 of file sata.c.

◆ pci_device_ids

const unsigned short pci_device_ids[]
static
Initial value:
= {
0,
}
#define IDE1_DEVID
Definition: pci_devs.h:113
#define AHCI1_DEVID
Definition: pci_devs.h:115
#define AHCI2_DEVID
Definition: pci_devs.h:116
#define IDE2_DEVID
Definition: pci_devs.h:114

Definition at line 204 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 = &soc_pci_ops,
}
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
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691
struct pci_operations soc_pci_ops
Definition: chip.c:51
static void sata_enable(struct device *dev)
Definition: sata.c:139
static void sata_init(struct device *dev)
Definition: sata.c:24

Definition at line 139 of file sata.c.