diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-01-14 16:19:50 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-01-14 16:19:50 +0000 |
commit | ae11c78a760821b55eb1e4245d69b68a3c626167 (patch) | |
tree | 725c58573579f7cca298baffece20f72544f85e3 /sys/arch/sparc64 | |
parent | 7930bad901040f7ea31d614fa05b186cb5152d65 (diff) |
Add macros to access Schizo's PCI config space.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/dev/schizovar.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/schizovar.h b/sys/arch/sparc64/dev/schizovar.h index ffa50f83943..2e11688abdb 100644 --- a/sys/arch/sparc64/dev/schizovar.h +++ b/sys/arch/sparc64/dev/schizovar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: schizovar.h,v 1.9 2006/08/27 18:55:57 kettenis Exp $ */ +/* $OpenBSD: schizovar.h,v 1.10 2007/01/14 16:19:49 kettenis Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -71,3 +71,7 @@ struct schizo_softc { bus_space_read_8((pbm)->sp_regt, (pbm)->sp_regh, (r)) #define schizo_pbm_write(pbm,r,v) \ bus_space_write_8((pbm)->sp_regt, (pbm)->sp_regh, (r), (v)) +#define schizo_cfg_read(pbm,r) \ + bus_space_read_4((pbm)->sp_cfgt, (pbm)->sp_cfgh, (r)) +#define schizo_cfg_write(pbm,r,v) \ + bus_space_write_4((pbm)->sp_cfgt, (pbm)->sp_cfgh, (r), (v)) |