summaryrefslogtreecommitdiff
path: root/sys/arch/octeon/include/bus.h
diff options
context:
space:
mode:
authorTakuya ASADA <syuu@cvs.openbsd.org>2010-10-28 22:52:11 +0000
committerTakuya ASADA <syuu@cvs.openbsd.org>2010-10-28 22:52:11 +0000
commitbffe3d2ae277153004d100387fe68485268ad916 (patch)
treed6a4239f864828bdbce09b692e8aac21fe5158c1 /sys/arch/octeon/include/bus.h
parent686b74e04c56cd1edd86b0f6786787c0d6d2f376 (diff)
Inital commit of PCI and SATA support for OCTEON
Diffstat (limited to 'sys/arch/octeon/include/bus.h')
-rw-r--r--sys/arch/octeon/include/bus.h33
1 files changed, 32 insertions, 1 deletions
diff --git a/sys/arch/octeon/include/bus.h b/sys/arch/octeon/include/bus.h
index 0fed3200dae..3072ca2aa92 100644
--- a/sys/arch/octeon/include/bus.h
+++ b/sys/arch/octeon/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.2 2010/10/10 16:38:55 syuu Exp $ */
+/* $OpenBSD: bus.h,v 1.3 2010/10/28 22:52:10 syuu Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB Sweden. All rights reserved.
@@ -467,4 +467,35 @@ struct machine_bus_dmamap {
bus_dma_segment_t dm_segs[1]; /* segments; variable length */
};
+int generic_space_map(bus_space_tag_t, bus_addr_t, bus_size_t, int,
+ bus_space_handle_t *);
+void generic_space_unmap(bus_space_tag_t, bus_space_handle_t, bus_size_t);
+int generic_space_region(bus_space_tag_t, bus_space_handle_t, bus_size_t,
+ bus_size_t, bus_space_handle_t *);
+void *generic_space_vaddr(bus_space_tag_t, bus_space_handle_t);
+uint8_t generic_space_read_1(bus_space_tag_t, bus_space_handle_t, bus_size_t);
+uint16_t generic_space_read_2(bus_space_tag_t, bus_space_handle_t, bus_size_t);
+uint32_t generic_space_read_4(bus_space_tag_t, bus_space_handle_t, bus_size_t);
+uint64_t generic_space_read_8(bus_space_tag_t, bus_space_handle_t, bus_size_t);
+void generic_space_read_raw_2(bus_space_tag_t, bus_space_handle_t,
+ bus_addr_t, uint8_t *, bus_size_t);
+void generic_space_write_1(bus_space_tag_t, bus_space_handle_t, bus_size_t,
+ uint8_t);
+void generic_space_write_2(bus_space_tag_t, bus_space_handle_t, bus_size_t,
+ uint16_t);
+void generic_space_write_4(bus_space_tag_t, bus_space_handle_t, bus_size_t,
+ uint32_t);
+void generic_space_write_8(bus_space_tag_t, bus_space_handle_t, bus_size_t,
+ uint64_t);
+void generic_space_write_raw_2(bus_space_tag_t, bus_space_handle_t,
+ bus_addr_t, const uint8_t *, bus_size_t);
+void generic_space_read_raw_4(bus_space_tag_t, bus_space_handle_t,
+ bus_addr_t, uint8_t *, bus_size_t);
+void generic_space_write_raw_4(bus_space_tag_t, bus_space_handle_t,
+ bus_addr_t, const uint8_t *, bus_size_t);
+void generic_space_read_raw_8(bus_space_tag_t, bus_space_handle_t,
+ bus_addr_t, uint8_t *, bus_size_t);
+void generic_space_write_raw_8(bus_space_tag_t, bus_space_handle_t,
+ bus_addr_t, const uint8_t *, bus_size_t);
+
#endif /* _MACHINE_BUS_H_ */