Re: UHCI patch

"Salvatore Benedetto" <[email protected]> Mon, 28 May 2007 20:34:59 +0200
Newsgroups gmane.os.openbeos.kernel.devel
Message-ID <[email protected]>
Sorry about that.

Here is the line fixed.

Salvo

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
Open-beos-kernel-devel mailing list
Open-beos-kernel-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/open-beos-kernel-devel
uhci.patch (text/x-patch, 1.8 KB)
Index: src/add-ons/kernel/busses/usb/uhci_hardware.h
===================================================================
--- src/add-ons/kernel/busses/usb/uhci_hardware.h	(revision 21262)
+++ src/add-ons/kernel/busses/usb/uhci_hardware.h	(working copy)
@@ -87,10 +87,10 @@
 typedef struct
 {
 	// Hardware part
-	addr_t	link_phy;		// Link to the next TD/QH
+	uint32	link_phy;		// Link to the next TD/QH
 	uint32	status;			// Status field
 	uint32	token;			// Contains the packet header (where it needs to be sent)
-	void	*buffer_phy;	// A pointer to the buffer with the actual packet
+	uint32	buffer_phy;		// A pointer to the buffer with the actual packet
 	// Software part
 	addr_t	this_phy;		// A physical pointer to this address
 	void	*link_log;		// Pointer to the next logical TD/QT
@@ -142,8 +142,8 @@
 typedef struct
 {
 	// Hardware part
-	addr_t	link_phy;		// Link to the next TD/QH
-	addr_t	element_phy;	// Pointer to the first element in the queue
+	uint32	link_phy;		// Link to the next TD/QH
+	uint32	element_phy;	// Pointer to the first element in the queue
 	// Software part
 	addr_t	this_phy;		// The physical pointer to this address
 	void	*link_log;		// Pointer to the next logical TD/QH
Index: src/add-ons/kernel/busses/usb/uhci.cpp
===================================================================
--- src/add-ons/kernel/busses/usb/uhci.cpp	(revision 21262)
+++ src/add-ons/kernel/busses/usb/uhci.cpp	(working copy)
@@ -1315,7 +1315,7 @@
 		return result;
 	}
 
-	if (fStack->AllocateChunk(&result->buffer_log, &result->buffer_phy,
+	if (fStack->AllocateChunk(&result->buffer_log, (void**)&result->buffer_phy,
 		bufferSize) < B_OK) {
 		TRACE_ERROR(("usb_uhci: unable to allocate space for the buffer\n"));
 		fStack->FreeChunk(result, (void *)result->this_phy, sizeof(uhci_td));