2 |
#define BUS_ISA_H |
#define BUS_ISA_H |
3 |
|
|
4 |
/* |
/* |
5 |
* Copyright (C) 2005 Anders Gavare. All rights reserved. |
* Copyright (C) 2005-2006 Anders Gavare. All rights reserved. |
6 |
* |
* |
7 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
8 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: bus_isa.h,v 1.1 2005/11/21 09:17:27 debug Exp $ |
* $Id: bus_isa.h,v 1.4 2006/01/16 01:45:50 debug Exp $ |
32 |
* |
* |
33 |
* ISA bus. |
* ISA bus. |
34 |
*/ |
*/ |
35 |
|
|
36 |
#include "misc.h" |
#include "misc.h" |
37 |
|
|
38 |
void bus_isa(struct machine *machine, uint32_t bus_isa_flags, |
#ifdef BUS_ISA_C |
39 |
uint64_t isa_portbase, uint64_t isa_membase, int isa_irqbase, |
|
40 |
int reassert_irq); |
struct bus_isa_data { |
41 |
|
int isa_irqbase; |
42 |
|
int reassert_irq; |
43 |
|
uint64_t isa_portbase; |
44 |
|
uint64_t isa_membase; |
45 |
|
}; |
46 |
|
|
47 |
|
#endif /* BUS_ISA_C */ |
48 |
|
|
49 |
|
struct bus_isa_data *bus_isa_init(struct machine *machine, |
50 |
|
uint32_t bus_isa_flags, uint64_t isa_portbase, uint64_t isa_membase, |
51 |
|
int isa_irqbase, int reassert_irq); |
52 |
|
|
53 |
/* ISA bus flags: */ |
/* ISA bus flags: */ |
54 |
#define BUS_ISA_IDE0 1 |
#define BUS_ISA_IDE0 1 |
59 |
#define BUS_ISA_PCKBC_FORCE_USE 32 |
#define BUS_ISA_PCKBC_FORCE_USE 32 |
60 |
#define BUS_ISA_PCKBC_NONPCSTYLE 64 |
#define BUS_ISA_PCKBC_NONPCSTYLE 64 |
61 |
#define BUS_ISA_NO_SECOND_PIC 128 |
#define BUS_ISA_NO_SECOND_PIC 128 |
62 |
|
#define BUS_ISA_LPTBASE_3BC 256 |
63 |
|
|
64 |
#endif /* BUS_ISA_H */ |
#endif /* BUS_ISA_H */ |