Revision 219982ef hw/pcnet.c
b/hw/pcnet.c | ||
---|---|---|
1562 | 1562 |
|
1563 | 1563 |
/* Initialize the PROM */ |
1564 | 1564 |
|
1565 |
/* |
|
1566 |
Datasheet: http://pdfdata.datasheetsite.com/web/24528/AM79C970A.pdf |
|
1567 |
page 95 |
|
1568 |
*/ |
|
1565 | 1569 |
memcpy(s->prom, s->conf.macaddr.a, 6); |
1570 |
/* Reserved Location: must be 00h */ |
|
1571 |
s->prom[6] = s->prom[7] = 0x00; |
|
1572 |
/* Reserved Location: must be 00h */ |
|
1573 |
s->prom[8] = 0x00; |
|
1574 |
/* Hardware ID: must be 11h if compatibility to AMD drivers is desired */ |
|
1575 |
s->prom[9] = 0x11; |
|
1576 |
/* User programmable space, init with 0 */ |
|
1577 |
s->prom[10] = s->prom[11] = 0x00; |
|
1578 |
/* LSByte of two-byte checksum, which is the sum of bytes 00h-0Bh |
|
1579 |
and bytes 0Eh and 0Fh, must therefore be initialized with 0! */ |
|
1566 | 1580 |
s->prom[12] = s->prom[13] = 0x00; |
1581 |
/* Must be ASCII W (57h) if compatibility to AMD |
|
1582 |
driver software is desired */ |
|
1567 | 1583 |
s->prom[14] = s->prom[15] = 0x57; |
1568 | 1584 |
|
1569 | 1585 |
for (i = 0,checksum = 0; i < 16; i++) |
Also available in: Unified diff