25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_v3.c,v 1.8 2007/01/20 13:26:20 debug Exp $ |
* $Id: dev_v3.c,v 1.9 2007/06/15 18:13:04 debug Exp $ |
29 |
* |
* |
30 |
* V3 Semiconductor PCI controller. |
* COMMENT: V3 Semiconductor PCI controller |
31 |
* |
* |
32 |
* The ISA interrupt controller part forwards ISA interrupts as follows |
* The ISA interrupt controller part forwards ISA interrupts as follows |
33 |
* (on Algor P5064): |
* (on Algor P5064): |
252 |
char pci_irq_base[200]; |
char pci_irq_base[200]; |
253 |
int i; |
int i; |
254 |
|
|
255 |
d = malloc(sizeof(struct v3_data)); |
CHECK_ALLOCATION(d = malloc(sizeof(struct v3_data))); |
|
if (d == NULL) { |
|
|
fprintf(stderr, "out of memory\n"); |
|
|
exit(1); |
|
|
} |
|
256 |
memset(d, 0, sizeof(struct v3_data)); |
memset(d, 0, sizeof(struct v3_data)); |
257 |
|
|
258 |
switch (devinit->machine->machine_type) { |
switch (devinit->machine->machine_type) { |