Revision 5fafdf24 hw/heathrow_pic.c
b/hw/heathrow_pic.c | ||
---|---|---|
1 | 1 |
/* |
2 | 2 |
* Heathrow PIC support (standard PowerMac PIC) |
3 |
*
|
|
3 |
* |
|
4 | 4 |
* Copyright (c) 2005 Fabrice Bellard |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* Permission is hereby granted, free of charge, to any person obtaining a copy |
7 | 7 |
* of this software and associated documentation files (the "Software"), to deal |
8 | 8 |
* in the Software without restriction, including without limitation the rights |
... | ... | |
88 | 88 |
HeathrowPIC *pic; |
89 | 89 |
unsigned int n; |
90 | 90 |
uint32_t value; |
91 |
|
|
91 |
|
|
92 | 92 |
n = ((addr & 0xfff) - 0x10) >> 4; |
93 | 93 |
if (n >= 2) { |
94 | 94 |
value = 0; |
... | ... | |
159 | 159 |
qemu_irq *heathrow_pic_init(int *pmem_index) |
160 | 160 |
{ |
161 | 161 |
HeathrowPICS *s; |
162 |
|
|
162 |
|
|
163 | 163 |
s = qemu_mallocz(sizeof(HeathrowPICS)); |
164 | 164 |
s->pics[0].level_triggered = 0; |
165 | 165 |
s->pics[1].level_triggered = 0x1ff00000; |
Also available in: Unified diff