Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

pci.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/pci.h>
#include "hd.h"
#include "hd_int.h"
#include "hddb.h"
#include "pci.h"

Functions

void add_driver_info (hd_data_t *hd_data)
unsigned char pci_cfg_byte (pci_t *pci, int fd, unsigned idx)
void get_pci_data (hd_data_t *hd_data)
void dump_pci_data (hd_data_t *hd_data)
int f_read (int fd, off_t ofs, void *buf, size_t len)
int f_write (int fd, off_t ofs, void *buf, size_t len)
unsigned get_pci_addr_range (hd_data_t *hd_data, pci_t *pci, int fd, unsigned addr, unsigned mask)
pci_t * add_pci_entry (hd_data_t *hd_data, pci_t *new_pci)
void hd_scan_pci (hd_data_t *hd_data)

Function Documentation

void add_driver_info (  hd_data_t *  hd_data  )  [static]
 

pci_t * add_pci_entry (  hd_data_t *  hd_data,
pci_t *  new_pci
)  [static]
 

void dump_pci_data (  hd_data_t *  hd_data  )  [static]
 

int f_read (  int  fd,
off_t  ofs,
void *  buf,
size_t  len
)  [static]
 

int f_write (  int  fd,
off_t  ofs,
void *  buf,
size_t  len
)  [static]
 

unsigned get_pci_addr_range (  hd_data_t *  hd_data,
pci_t *  pci,
int  fd,
unsigned  addr,
unsigned  mask
)  [static]
 

void get_pci_data (  hd_data_t *  hd_data  )  [static]
 

void hd_scan_pci (  hd_data_t *  hd_data  ) 
 

unsigned char pci_cfg_byte (  pci_t *  pci,
int  fd,
unsigned  idx
)  [static]