Use the new SRAM size constants.

This commit is contained in:
dyoung 2004-07-23 05:06:26 +00:00
parent d27479d86f
commit 72cea14142
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: atw.c,v 1.66 2004/07/16 23:13:27 dyoung Exp $ */
/* $NetBSD: atw.c,v 1.67 2004/07/23 05:06:26 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.66 2004/07/16 23:13:27 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.67 2004/07/23 05:06:26 dyoung Exp $");
#include "bpfilter.h"
@ -2015,7 +2015,7 @@ atw_write_sram(struct atw_softc *sc, u_int ofs, u_int8_t *buf, u_int buflen)
KASSERT(ofs % 2 == 0 && buflen % 2 == 0);
KASSERT(buflen + ofs <= ATW_SRAM_SIZE);
KASSERT(buflen + ofs <= ATW_SRAM_A_SIZE);
ptr = &sc->sc_sram[ofs];

View File

@ -1,4 +1,4 @@
/* $NetBSD: atwvar.h,v 1.11 2004/07/15 06:13:44 dyoung Exp $ */
/* $NetBSD: atwvar.h,v 1.12 2004/07/23 05:06:26 dyoung Exp $ */
/*
* Copyright (c) 2003, 2004 The NetBSD Foundation, Inc. All rights reserved.
@ -269,7 +269,7 @@ struct atw_softc {
int, u_int32_t);
/* ADM8211 state variables. */
u_int8_t sc_sram[ATW_SRAM_SIZE];
u_int8_t sc_sram[ATW_SRAM_MAXSIZE];
u_int8_t sc_bssid[IEEE80211_ADDR_LEN];
struct timeval sc_last_beacon;