2 |
#define BUS_ISA_H |
#define BUS_ISA_H |
3 |
|
|
4 |
/* |
/* |
5 |
* Copyright (C) 2005-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2005-2007 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.4 2006/01/16 01:45:50 debug Exp $ |
* $Id: bus_isa.h,v 1.9 2007/01/17 20:11:28 debug Exp $ |
32 |
* |
* |
33 |
* ISA bus. |
* ISA bus. |
34 |
*/ |
*/ |
35 |
|
|
36 |
#include "misc.h" |
#include "misc.h" |
37 |
|
#include "interrupt.h" |
38 |
|
|
39 |
#ifdef BUS_ISA_C |
#ifdef BUS_ISA_C |
40 |
|
|
41 |
struct bus_isa_data { |
struct bus_isa_data { |
42 |
int isa_irqbase; |
struct interrupt irq; |
43 |
int reassert_irq; |
|
44 |
|
struct pic8259_data* pic1; |
45 |
|
struct pic8259_data* pic2; |
46 |
|
int *ptr_to_pending_timer_interrupts; |
47 |
|
int *ptr_to_last_int; |
48 |
|
|
49 |
uint64_t isa_portbase; |
uint64_t isa_portbase; |
50 |
uint64_t isa_membase; |
uint64_t isa_membase; |
51 |
}; |
}; |
53 |
#endif /* BUS_ISA_C */ |
#endif /* BUS_ISA_C */ |
54 |
|
|
55 |
struct bus_isa_data *bus_isa_init(struct machine *machine, |
struct bus_isa_data *bus_isa_init(struct machine *machine, |
56 |
uint32_t bus_isa_flags, uint64_t isa_portbase, uint64_t isa_membase, |
char *interrupt_base_path, uint32_t bus_isa_flags, |
57 |
int isa_irqbase, int reassert_irq); |
uint64_t isa_portbase, uint64_t isa_membase); |
58 |
|
|
59 |
/* ISA bus flags: */ |
/* ISA bus flags: */ |
60 |
#define BUS_ISA_IDE0 1 |
#define BUS_ISA_IDE0 1 |
66 |
#define BUS_ISA_PCKBC_NONPCSTYLE 64 |
#define BUS_ISA_PCKBC_NONPCSTYLE 64 |
67 |
#define BUS_ISA_NO_SECOND_PIC 128 |
#define BUS_ISA_NO_SECOND_PIC 128 |
68 |
#define BUS_ISA_LPTBASE_3BC 256 |
#define BUS_ISA_LPTBASE_3BC 256 |
69 |
|
#define BUS_ISA_EXTERNAL_PIC 512 |
70 |
|
|
71 |
#endif /* BUS_ISA_H */ |
#endif /* BUS_ISA_H */ |