diff options
author | phk <phk@FreeBSD.org> | 2005-09-20 09:52:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-09-20 09:52:53 +0000 |
commit | 76edcb75f859368f044c7e7e3cc89d40b2f7a737 (patch) | |
tree | 343a70c8c3ca96f9b98cedd2227618a383c2bd37 /sys/pci/if_sisreg.h | |
parent | ed5e4faa718f647c195f6a0ea15572d5d8941b1f (diff) | |
download | FreeBSD-src-76edcb75f859368f044c7e7e3cc89d40b2f7a737.zip FreeBSD-src-76edcb75f859368f044c7e7e3cc89d40b2f7a737.tar.gz |
Move code macros from if_sis*reg*.h to if_sis.*c*
Diffstat (limited to 'sys/pci/if_sisreg.h')
-rw-r--r-- | sys/pci/if_sisreg.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/pci/if_sisreg.h b/sys/pci/if_sisreg.h index 03ac3cc..5833563 100644 --- a/sys/pci/if_sisreg.h +++ b/sys/pci/if_sisreg.h @@ -466,22 +466,6 @@ struct sis_softc { struct mtx sis_mtx; }; -#define SIS_LOCK(_sc) mtx_lock(&(_sc)->sis_mtx) -#define SIS_UNLOCK(_sc) mtx_unlock(&(_sc)->sis_mtx) -#define SIS_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sis_mtx, MA_OWNED) - -/* - * register space access macros - */ -#define CSR_WRITE_4(sc, reg, val) \ - bus_space_write_4(sc->sis_btag, sc->sis_bhandle, reg, val) - -#define CSR_READ_4(sc, reg) \ - bus_space_read_4(sc->sis_btag, sc->sis_bhandle, reg) - -#define CSR_READ_2(sc, reg) \ - bus_space_read_2(sc->sis_btag, sc->sis_bhandle, reg) - #define SIS_TIMEOUT 1000 #define ETHER_ALIGN 2 #define SIS_RXLEN 1536 |