[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] Remove unused definitions in usb.h



Alan, could you please commit this patch.

Thanks.

--------------

Commit message:

Remove some definitions that shouldn't be in this header file, besides
they aren't used by any driver.
Index: sys/usb/src.km/usb.h
===================================================================
RCS file: /mint/freemint/sys/usb/src.km/usb.h,v
retrieving revision 1.4
diff -u -8 -r1.4 usb.h
--- sys/usb/src.km/usb.h	11 Feb 2014 22:39:35 -0000	1.4
+++ sys/usb/src.km/usb.h	6 Mar 2014 10:58:31 -0000
@@ -1,10 +1,10 @@
 /*
- * Modified for the FreeMiNT USB subsystem by David Galvez. 2010 - 2011
+ * Modified for the FreeMiNT USB subsystem by David Galvez. 2010 - 2014
  * Modified for Atari by Didier Mequignon 2009
  *	
  * (C) Copyright 2001
  * Denis Peter, MPL AG Switzerland
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
  * published by the Free Software Foundation; either version 2 of
@@ -30,39 +30,16 @@
 #include "mint/lists.h"
 #include "mint/endian.h"
 #include "mint/mdelay.h"
 #include "ucd/pci-ohci/mod_devicetable.h"
 #include "endian/byteorder.h"
 #include "usb_defs.h"
 #include "part.h"
 
-#ifdef PCI_XBIOS
-
-# define in8(addr)		fast_read_mem_byte(usb_handle,addr)
-# define in16r(addr)		fast_read_mem_word(usb_handle,addr)
-# define in32r(addr)		fast_read_mem_longword(usb_handle,addr)
-# define out8(addr,val)		write_mem_byte(usb_handle,addr,val)
-# define out16r(addr,val)	write_mem_word(usb_handle,addr,val)
-# define out32r(addr,val)	write_mem_longword(usb_handle,addr,val)
-
-#else /* !PCI_XBIOS */
-
-extern long *tab_funcs_pci;
-
-# define in8(addr)		Fast_read_mem_byte(usb_handle,addr)
-# define in16r(addr)		Fast_read_mem_word(usb_handle,addr)
-# define in32r(addr)		Fast_read_mem_longword(usb_handle,addr)
-# define out8(addr,val)		Write_mem_byte(usb_handle,addr,val)
-# define out16r(addr,val)	Write_mem_word(usb_handle,addr,val)
-# define out32r(addr,val)	Write_mem_longword(usb_handle,addr,val)
-
-#endif /* PCI_XBIOS */
-
-
 /* Everything is aribtrary */
 #define USB_ALTSETTINGALLOC		4
 #define USB_MAXALTSETTING		128	/* Hard limit */
 
 #define USB_MAX_DEVICE			32
 #define USB_MAXCONFIG			8
 #define USB_MAXINTERFACES		8
 #define USB_MAXENDPOINTS		16