git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4861 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2003-09-29 19:09:12 +00:00
parent 1aad0f29d1
commit fb5398b8f7
2 changed files with 0 additions and 66 deletions

View File

@ -1,45 +0,0 @@
/*
** Copyright 2001, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#ifndef _PCI_BUS_H
#define _PCI_BUS_H
#include <SupportDefs.h>
struct kernel_args;
struct pci_cfg {
uint16 vendor_id;
uint16 device_id;
uint16 command;
uint16 status;
uint8 revision_id;
uint8 interface;
uint8 sub_class;
uint8 base_class;
uint8 cache_line_size;
uint8 latency_timer;
uint8 header_type;
uint8 bist;
uint8 bus;
uint8 unit;
uint8 func;
uint8 irq;
uint32 base[6];
uint32 size[6];
};
typedef enum {
PCI_GET_CFG = 10099,
PCI_DUMP_CFG
} pci_ioctl_cmd;
int pci_bus_init(kernel_args *ka);
#endif

View File

@ -1,21 +0,0 @@
#ifndef _PCI_P_H
#define _PCI_P_H
#define CONFIG_ADDRESS 0xcf8
#define CONFIG_DATA 0xcfc
struct pci_config_address {
unsigned reg : 8,
function : 3,
unit : 5,
bus : 8,
reserved : 7,
enable : 1;
};
void dump_pci_config(struct pci_cfg *cfg);
int pci_probe(uint8 bus, uint8 unit, uint8 function, struct pci_cfg *cfg);
#endif