diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-06-08 19:08:24 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-06-08 19:08:24 +0000 |
commit | 7ccf7990516fe3793e8df652f183a4d370cca5e9 (patch) | |
tree | bd29b9c2c4d1feaeaba202d806402d8ca0f68ea1 /sys/arch/macppc/include | |
parent | ae20fc2ce3fc8721a0c9ec91e3ee79bd6a4deea2 (diff) |
Remove the bus_reverse field out of the powerpc bus structure, originally
it was there so that big endian and little endian devices could both be
present, however that is not the case on the macppc machines.
Cleans up code, shrinks the kernel. ok deraadt@
Diffstat (limited to 'sys/arch/macppc/include')
-rw-r--r-- | sys/arch/macppc/include/bus.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/arch/macppc/include/bus.h b/sys/arch/macppc/include/bus.h index c4dd81d2cb8..0e3c3b0637a 100644 --- a/sys/arch/macppc/include/bus.h +++ b/sys/arch/macppc/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.11 2003/10/08 21:52:46 drahn Exp $ */ +/* $OpenBSD: bus.h,v 1.12 2005/06/08 19:08:23 drahn Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom. All rights reserved. @@ -55,7 +55,6 @@ typedef struct ppc_bus_space *bus_space_tag_t; struct ppc_bus_space { u_int32_t bus_base; u_int32_t bus_size; - u_int8_t bus_reverse; /* Reverse bytes */ u_int8_t bus_io; /* IO or memory */ }; #define POWERPC_BUS_TAG_BASE(x) ((x)->bus_base) @@ -83,10 +82,7 @@ static __inline CAT3(u_int,m,_t) \ CAT(bus_space_read_,n)(bus_space_tag_t bst, bus_space_handle_t bsh, \ bus_addr_t ba) \ { \ - if(bst->bus_reverse) \ return CAT3(in,m,rb)((volatile CAT3(u_int,m,_t) *)(bsh + (ba))); \ - else \ - return CAT(in,m)((volatile CAT3(u_int,m,_t) *)(bsh + (ba))); \ } bus_space_read(1,8) @@ -100,10 +96,7 @@ static __inline void \ CAT(bus_space_write_,n)(bus_space_tag_t bst, bus_space_handle_t bsh, \ bus_addr_t ba, CAT3(u_int,m,_t) x) \ { \ - if(bst->bus_reverse) \ CAT3(out,m,rb)((volatile CAT3(u_int,m,_t) *)(bsh + (ba)), x); \ - else \ - CAT(out,m)((volatile CAT3(u_int,m,_t) *)(bsh + (ba)), x); \ } bus_space_write(1,8) |