From 8c967acc0e8a0433a9436bf0460349f3d37aa74a Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Fri, 29 Sep 2006 19:38:53 +0000 Subject: Extend bus master interface so that block read/write operations can be offloaded to hardware. --- sys/dev/onewire/onewirevar.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/onewire/onewirevar.h') diff --git a/sys/dev/onewire/onewirevar.h b/sys/dev/onewire/onewirevar.h index 51b7ea4a434..9da8c335bff 100644 --- a/sys/dev/onewire/onewirevar.h +++ b/sys/dev/onewire/onewirevar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: onewirevar.h,v 1.1 2006/03/04 16:27:03 grange Exp $ */ +/* $OpenBSD: onewirevar.h,v 1.2 2006/09/29 19:38:52 grange Exp $ */ /* * Copyright (c) 2006 Alexander Yurchenko @@ -31,6 +31,8 @@ struct onewire_bus { int (*bus_bit)(void *, int); int (*bus_read_byte)(void *); void (*bus_write_byte)(void *, int); + void (*bus_read_block)(void *, void *, int); + void (*bus_write_block)(void *, const void *, int); int (*bus_triplet)(void *, int); }; @@ -41,9 +43,9 @@ int onewire_reset(void *); int onewire_bit(void *, int); int onewire_read_byte(void *); void onewire_write_byte(void *, int); -int onewire_triplet(void *, int); void onewire_read_block(void *, void *, int); void onewire_write_block(void *, const void *, int); +int onewire_triplet(void *, int); void onewire_matchrom(void *, u_int64_t); #define ONEWIRE_NOWAIT 0x0001 -- cgit v1.2.3