make sure to have 32B aligned descriptor array.
This commit is contained in:
parent
25f1d04e74
commit
88e9af105e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kse.c,v 1.5 2011/01/11 09:45:25 nisimura Exp $ */
|
||||
/* $NetBSD: kse.c,v 1.6 2011/01/11 10:10:48 nisimura Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -130,7 +130,7 @@ kse_init(unsigned tag, void *data)
|
|||
unsigned i, val, fdx;
|
||||
uint8_t *en;
|
||||
|
||||
l = ALLOC(struct local, sizeof(struct desc)); /* desc alignment */
|
||||
l = ALLOC(struct local, 32); /* desc alignment */
|
||||
memset(l, 0, sizeof(struct local));
|
||||
l->csr = DEVTOV(pcicfgread(tag, 0x10));
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nvt.c,v 1.19 2011/01/11 09:45:25 nisimura Exp $ */
|
||||
/* $NetBSD: nvt.c,v 1.20 2011/01/11 10:10:48 nisimura Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -175,7 +175,7 @@ nvt_init(unsigned tag, void *data)
|
|||
struct desc *txd, *rxd;
|
||||
uint8_t *en;
|
||||
|
||||
l = ALLOC(struct local, sizeof(struct desc)); /* desc alignment */
|
||||
l = ALLOC(struct local, 32); /* desc alignment */
|
||||
memset(l, 0, sizeof(struct local));
|
||||
l->csr = ~01 & DEVTOV(pcicfgread(tag, 0x10)); /* use IO space */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pcn.c,v 1.18 2011/01/11 09:45:25 nisimura Exp $ */
|
||||
/* $NetBSD: pcn.c,v 1.19 2011/01/11 10:10:48 nisimura Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -149,7 +149,7 @@ pcn_init(unsigned tag, void *data)
|
|||
uint8_t *en;
|
||||
struct pcninit initblock, *ib;
|
||||
|
||||
l = ALLOC(struct local, sizeof(struct desc)); /* desc alignment */
|
||||
l = ALLOC(struct local, 32); /* desc alignment */
|
||||
memset(l, 0, sizeof(struct local));
|
||||
l->csr = DEVTOV(pcicfgread(tag, 0x14)); /* use mem space */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sip.c,v 1.18 2011/01/11 09:45:25 nisimura Exp $ */
|
||||
/* $NetBSD: sip.c,v 1.19 2011/01/11 10:10:48 nisimura Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -142,7 +142,7 @@ sip_init(unsigned tag, void *data)
|
|||
if (PCI_DEVICE(0x100b, 0x0020) != val)
|
||||
return NULL;
|
||||
|
||||
l = ALLOC(struct local, sizeof(struct desc)); /* desc alignment */
|
||||
l = ALLOC(struct local, 32); /* desc alignment */
|
||||
memset(l, 0, sizeof(struct local));
|
||||
l->csr = DEVTOV(pcicfgread(tag, 0x14)); /* use mem space */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sme.c,v 1.4 2011/01/11 09:45:25 nisimura Exp $ */
|
||||
/* $NetBSD: sme.c,v 1.5 2011/01/11 10:10:48 nisimura Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -123,7 +123,7 @@ sme_init(unsigned tag, void *data)
|
|||
unsigned mac32, mac16, val, fdx;
|
||||
uint8_t *en;
|
||||
|
||||
l = ALLOC(struct local, sizeof(struct desc)); /* desc alignment */
|
||||
l = ALLOC(struct local, 32); /* desc alignment */
|
||||
memset(l, 0, sizeof(struct local));
|
||||
l->csr = DEVTOV(pcicfgread(tag, 0x1c)); /* BAR3 mem space, LE */
|
||||
l->phy = 1; /* 9420 internal PHY */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: wm.c,v 1.12 2011/01/11 09:45:25 nisimura Exp $ */
|
||||
/* $NetBSD: wm.c,v 1.13 2011/01/11 10:10:48 nisimura Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -141,7 +141,7 @@ wm_init(unsigned tag, void *data)
|
|||
struct rdesc *rxd;
|
||||
uint8_t *en;
|
||||
|
||||
l = ALLOC(struct local, sizeof(struct tdesc)); /* desc alignment */
|
||||
l = ALLOC(struct local, 32); /* desc alignment */
|
||||
memset(l, 0, sizeof(struct local));
|
||||
l->csr = pcicfgread(tag, 0x10); /* use mem space */
|
||||
|
||||
|
|
Loading…
Reference in New Issue