-/* $OpenBSD: bus.h,v 1.2 1996/04/21 22:16:46 deraadt Exp $ */
+/* $OpenBSD: bus.h,v 1.3 1996/04/27 22:18:16 niklas Exp $ */
/* $NetBSD: bus.h,v 1.2 1996/04/05 23:59:37 thorpej Exp $ */
/*
#define bus_mem_write_8(t, h, o, v) \
((void)(*(volatile u_int64_t *)((h) + (o)) = (v)))
+/* These are extensions to the general NetBSD bus interface. */
+#define bus_to_host_2(t, v) (v)
+#define bus_to_host_4(t, v) (v)
+#define bus_to_host_8(t, v) (v)
+
+#define bus_from_host_2(t, v) (v)
+#define bus_from_host_4(t, v) (v)
+#define bus_from_host_8(t, v) (v)
+
#endif /* _I386_BUS_H_ */
-/* $OpenBSD: if_ed.c,v 1.10 1996/04/21 22:23:41 deraadt Exp $ */
+/* $OpenBSD: if_ed.c,v 1.11 1996/04/27 22:19:59 niklas Exp $ */
/* $NetBSD: if_ed.c,v 1.93 1996/04/11 22:28:55 cgd Exp $ */
/*
sizeof(packet_hdr));
else
ed_pio_readmem(sc, (long)packet_ptr,
- (caddr_t) &packet_hdr, sizeof(packet_hdr));
- len = packet_hdr.count;
+ (caddr_t)&packet_hdr, sizeof(packet_hdr));
+ len = bus_to_host_2(bc, packet_hdr.count);
/*
* Try do deal with old, buggy chips that sometimes duplicate