diff options
Diffstat (limited to 'sys/dev/ic/dcreg.h')
-rw-r--r-- | sys/dev/ic/dcreg.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/dev/ic/dcreg.h b/sys/dev/ic/dcreg.h index 408afc17967..10999a4cac9 100644 --- a/sys/dev/ic/dcreg.h +++ b/sys/dev/ic/dcreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dcreg.h,v 1.38 2004/10/29 01:10:43 brad Exp $ */ +/* $OpenBSD: dcreg.h,v 1.39 2004/12/02 02:28:35 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -985,9 +985,17 @@ struct dc_eblock_hdr { struct dc_eblock_sia { struct dc_eblock_hdr dc_sia_hdr; u_int8_t dc_sia_code; - u_int8_t dc_sia_mediaspec[6]; /* CSR13, CSR14, CSR15 */ - u_int8_t dc_sia_gpio_ctl[2]; - u_int8_t dc_sia_gpio_dat[2]; + union { + struct dc_sia_ext { /* if (dc_sia_code & DC_SIA_CODE_EXT) */ + u_int8_t dc_sia_mediaspec[6]; /* CSR13, CSR14, CSR15 */ + u_int8_t dc_sia_gpio_ctl[2]; + u_int8_t dc_sia_gpio_dat[2]; + } dc_sia_ext; + struct dc_sia_noext { + u_int8_t dc_sia_gpio_ctl[2]; + u_int8_t dc_sia_gpio_dat[2]; + } dc_sia_noext; + } dc_un; }; #define DC_SIA_CODE_10BT 0x00 |