Revision d60efc6b hw/pcnet.c
b/hw/pcnet.c | ||
---|---|---|
1963 | 1963 |
|
1964 | 1964 |
/* PCI interface */ |
1965 | 1965 |
|
1966 |
static CPUWriteMemoryFunc *pcnet_mmio_write[] = { |
|
1967 |
(CPUWriteMemoryFunc *)&pcnet_mmio_writeb, |
|
1968 |
(CPUWriteMemoryFunc *)&pcnet_mmio_writew, |
|
1969 |
(CPUWriteMemoryFunc *)&pcnet_mmio_writel |
|
1966 |
static CPUWriteMemoryFunc * const pcnet_mmio_write[] = {
|
|
1967 |
(CPUWriteMemoryFunc * const )&pcnet_mmio_writeb,
|
|
1968 |
(CPUWriteMemoryFunc * const )&pcnet_mmio_writew,
|
|
1969 |
(CPUWriteMemoryFunc * const )&pcnet_mmio_writel
|
|
1970 | 1970 |
}; |
1971 | 1971 |
|
1972 |
static CPUReadMemoryFunc *pcnet_mmio_read[] = { |
|
1973 |
(CPUReadMemoryFunc *)&pcnet_mmio_readb, |
|
1974 |
(CPUReadMemoryFunc *)&pcnet_mmio_readw, |
|
1975 |
(CPUReadMemoryFunc *)&pcnet_mmio_readl |
|
1972 |
static CPUReadMemoryFunc * const pcnet_mmio_read[] = {
|
|
1973 |
(CPUReadMemoryFunc * const )&pcnet_mmio_readb,
|
|
1974 |
(CPUReadMemoryFunc * const )&pcnet_mmio_readw,
|
|
1975 |
(CPUReadMemoryFunc * const )&pcnet_mmio_readl
|
|
1976 | 1976 |
}; |
1977 | 1977 |
|
1978 | 1978 |
static void pcnet_mmio_map(PCIDevice *pci_dev, int region_num, |
... | ... | |
2101 | 2101 |
return val & 0xffff; |
2102 | 2102 |
} |
2103 | 2103 |
|
2104 |
static CPUReadMemoryFunc *lance_mem_read[3] = { |
|
2104 |
static CPUReadMemoryFunc * const lance_mem_read[3] = {
|
|
2105 | 2105 |
NULL, |
2106 | 2106 |
lance_mem_readw, |
2107 | 2107 |
NULL, |
2108 | 2108 |
}; |
2109 | 2109 |
|
2110 |
static CPUWriteMemoryFunc *lance_mem_write[3] = { |
|
2110 |
static CPUWriteMemoryFunc * const lance_mem_write[3] = {
|
|
2111 | 2111 |
NULL, |
2112 | 2112 |
lance_mem_writew, |
2113 | 2113 |
NULL, |
Also available in: Unified diff