OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [linux/] [bios32.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 * BIOS32, PCI BIOS functions and defines
3
 * Copyright 1994, Drew Eckhardt
4
 *
5
 * For more information, please consult
6
 *
7
 * PCI BIOS Specification Revision
8
 * PCI Local Bus Specification
9
 * PCI System Design Guide
10
 *
11
 * PCI Special Interest Group
12
 * P.O. Box 14070
13
 * Portland, OR 97214
14
 * U. S. A.
15
 * Phone: 800-433-5177 / +1-503-797-4207
16
 * Fax: +1-503-234-6762
17
 *
18
 * Manuals are $25 each or $50 for all three, plus $7 shipping
19
 * within the United States, $35 abroad.
20
 */
21
 
22
#ifndef BIOS32_H
23
#define BIOS32_H
24
 
25
/*
26
 * Error values that may be returned by the PCI bios.  Use
27
 * pcibios_strerror() to convert to a printable string.
28
 */
29
#define PCIBIOS_SUCCESSFUL              0x00
30
#define PCIBIOS_FUNC_NOT_SUPPORTED      0x81
31
#define PCIBIOS_BAD_VENDOR_ID           0x83
32
#define PCIBIOS_DEVICE_NOT_FOUND        0x86
33
#define PCIBIOS_BAD_REGISTER_NUMBER     0x87
34
#define PCIBIOS_SET_FAILED              0x88
35
#define PCIBIOS_BUFFER_TOO_SMALL        0x89
36
 
37
extern int pcibios_present (void);
38
extern unsigned long pcibios_init (unsigned long memory_start,
39
                                   unsigned long memory_end);
40
extern unsigned long pcibios_fixup (unsigned long memory_start,
41
                                    unsigned long memory_end);
42
extern int pcibios_find_class (unsigned int class_code, unsigned short index,
43
                               unsigned char *bus, unsigned char *dev_fn);
44
extern int pcibios_find_device (unsigned short vendor, unsigned short dev_id,
45
                                unsigned short index, unsigned char *bus,
46
                                unsigned char *dev_fn);
47
extern int pcibios_read_config_byte (unsigned char bus, unsigned char dev_fn,
48
                                     unsigned char where, unsigned char *val);
49
extern int pcibios_read_config_word (unsigned char bus, unsigned char dev_fn,
50
                                     unsigned char where, unsigned short *val);
51
extern int pcibios_read_config_dword (unsigned char bus, unsigned char dev_fn,
52
                                      unsigned char where, unsigned int *val);
53
extern int pcibios_write_config_byte (unsigned char bus, unsigned char dev_fn,
54
                                      unsigned char where, unsigned char val);
55
extern int pcibios_write_config_word (unsigned char bus, unsigned char dev_fn,
56
                                      unsigned char where, unsigned short val);
57
extern int pcibios_write_config_dword (unsigned char bus, unsigned char dev_fn,
58
                                       unsigned char where, unsigned int val);
59
extern const char *pcibios_strerror (int error);
60
 
61
#endif /* BIOS32_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.