Don't pull in x86emu from a foreign directory anymore. This
[coreboot.git] / util / x86emu / pcbios / pcibios.h
1 /*
2  * This software and ancillary information (herein called SOFTWARE )
3  * called LinuxBIOS          is made available under the terms described
4  * here.  The SOFTWARE has been approved for release with associated
5  * LA-CC Number 00-34   .  Unless otherwise indicated, this SOFTWARE has
6  * been authored by an employee or employees of the University of
7  * California, operator of the Los Alamos National Laboratory under
8  * Contract No. W-7405-ENG-36 with the U.S. Department of Energy.  The
9  * U.S. Government has rights to use, reproduce, and distribute this
10  * SOFTWARE.  The public may copy, distribute, prepare derivative works
11  * and publicly display this SOFTWARE without charge, provided that this
12  * Notice and any statement of authorship are reproduced on all copies.
13  * Neither the Government nor the University makes any warranty, express
14  * or implied, or assumes any liability or responsibility for the use of
15  * this SOFTWARE.  If SOFTWARE is modified to produce derivative works,
16  * such modified SOFTWARE should be clearly marked, so as not to confuse
17  * it with the version available from LANL.
18  */
19  /*
20  * This file is part of the coreboot project.
21  *
22  *  (c) Copyright 2000, Ron Minnich, Advanced Computing Lab, LANL
23  *
24  * This program is free software; you can redistribute it and/or modify
25  * it under the terms of the GNU General Public License as published by 
26  * the Free Software Foundation; either version 2 of the License, or
27  * (at your option) any later version.
28  *
29  * This program is distributed in the hope that it will be useful,
30  * but WITHOUT ANY WARRANTY; without even the implied warranty of
31  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32  * GNU General Public License for more details.
33  *
34  * You should have received a copy of the GNU General Public License
35  * along with this program; if not, write to the Free Software
36  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
37  */
38
39 #ifndef PCI_BIOS_H
40 #define PCI_BIOS_H
41
42 enum {
43         PCI_BIOS_PRESENT        = 0xB101,
44         FIND_PCI_DEVICE         = 0xB102,
45         FIND_PCI_CLASS_CODE     = 0xB103,
46         GENERATE_SPECIAL_CYCLE  = 0xB106,
47         READ_CONFIG_BYTE        = 0xB108,
48         READ_CONFIG_WORD        = 0xB109,
49         READ_CONFIG_DWORD       = 0xB10A,
50         WRITE_CONFIG_BYTE       = 0xB10B,
51         WRITE_CONFIG_WORD       = 0xB10C,
52         WRITE_CONFIG_DWORD      = 0xB10D,
53         GET_IRQ_ROUTING_OPTIONS = 0xB10E,
54         SET_PCI_IRQ             = 0xB10F
55 };
56
57 enum {
58         SUCCESSFUL              = 0x00,
59         FUNC_NOT_SUPPORTED      = 0x81,
60         BAD_VENDOR_ID           = 0x83,
61         DEVICE_NOT_FOUND        = 0x86,
62         BAD_REGISTER_NUMBER     = 0x87,
63         SET_FAILED              = 0x88,
64         BUFFER_TOO_SMALL        = 0x89
65 };
66
67 int pcibios_handler(void);
68
69 #endif /* PCI_BIOS_H */
70