diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-05-03 11:22:09 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-05-03 11:22:09 +0000 |
commit | 8a9c2f057528fd59d2e4af4583d08c98221f0197 (patch) | |
tree | 34d3fd907b0e53067178549c7490a982b728d3c6 /sys | |
parent | 7ee99def7dab9265df0784f8f7f64b7fff918df9 (diff) |
alias bus_space_{read,write}_raw to the non-raw counterparts
busses are little endian, so the non-raw ops are raw anyway. fixes
the kernel build after xge grew the use of the raw ops.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/include/bus.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/bus.h b/sys/arch/alpha/include/bus.h index 60d9ee7f264..2d040b4861d 100644 --- a/sys/arch/alpha/include/bus.h +++ b/sys/arch/alpha/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.29 2011/03/23 16:54:34 pirofti Exp $ */ +/* $OpenBSD: bus.h,v 1.30 2016/05/03 11:22:08 dlg Exp $ */ /* $NetBSD: bus.h,v 1.10 1996/12/02 22:19:32 cgd Exp $ */ /* @@ -260,6 +260,15 @@ struct alpha_bus_space { /* + * Bus read (single) operations. + */ +#define bus_space_read_raw_1(t, h, o) __abs_rs(1,(t),(h),(o)) +#define bus_space_read_raw_2(t, h, o) __abs_rs(2,(t),(h),(o)) +#define bus_space_read_raw_4(t, h, o) __abs_rs(4,(t),(h),(o)) +#define bus_space_read_raw_8(t, h, o) __abs_rs(8,(t),(h),(o)) + + +/* * Bus read multiple operations. */ #define bus_space_read_multi_1(t, h, o, a, c) \ @@ -330,6 +339,15 @@ struct alpha_bus_space { /* + * Bus write raw (single) operations. + */ +#define bus_space_write_raw_1(t, h, o, v) __abs_ws(1,(t),(h),(o),(v)) +#define bus_space_write_raw_2(t, h, o, v) __abs_ws(2,(t),(h),(o),(v)) +#define bus_space_write_raw_4(t, h, o, v) __abs_ws(4,(t),(h),(o),(v)) +#define bus_space_write_raw_8(t, h, o, v) __abs_ws(8,(t),(h),(o),(v)) + + +/* * Bus write multiple operations. */ #define bus_space_write_multi_1(t, h, o, a, c) \ |