mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Adjust lnc(4) for 64-bit platforms should it get newbus'ified.
This commit is contained in:
parent
a9653b1cc3
commit
13545b10a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126527
@ -945,10 +945,10 @@ printf("XXX no address?\n");
|
||||
else
|
||||
lnc_mem = (char *) (sc->trans_ring + NDESC(sc->ntdre));
|
||||
|
||||
lnc_mem = (char *)(((int)lnc_mem + 1) & ~1);
|
||||
sc->init_block = (struct init_block *) ((int) lnc_mem & ~1);
|
||||
lnc_mem = (char *)(((long)lnc_mem + 1) & ~1);
|
||||
sc->init_block = (struct init_block *) ((long) lnc_mem & ~1);
|
||||
lnc_mem = (char *) (sc->init_block + 1);
|
||||
lnc_mem = (char *)(((int)lnc_mem + 7) & ~7);
|
||||
lnc_mem = (char *)(((long)lnc_mem + 7) & ~7);
|
||||
|
||||
/* Initialise pointers to descriptor entries */
|
||||
for (i = 0; i < NDESC(sc->nrdre); i++) {
|
||||
|
@ -183,7 +183,7 @@ struct nic_info {
|
||||
int ident; /* Type of card */
|
||||
int ic; /* Type of ic, Am7990, Am79C960 etc. */
|
||||
int mem_mode;
|
||||
int iobase;
|
||||
long iobase;
|
||||
int mode; /* Mode setting at initialization */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user