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

[MiNT] [PATCH][3/3] Remove unused USB headers



Commit message:

Remove unused USB header files.
Contributed by David Galvez.
diff -r d5dc8e2261c7 -r 5e41069d080e sys/usb/src.km/ucd/ucd_defs.h
--- a/sys/usb/src.km/ucd/ucd_defs.h	Mon Feb 23 10:37:52 2015 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,109 +0,0 @@
-/*
- * Modified for the FreeMiNT USB subsystem by David Galvez. 2010 - 2011
- *
- * This file belongs to FreeMiNT. It's not in the original MiNT 1.12
- * distribution. See the file CHANGES for a detailed log of changes.
- *
- * Copyright 2003 Odd Skancke <ozk@atari.org>
- * All rights reserved.
- *
- * Please send suggestions, patches or bug reports to me or
- * the MiNT mailing list.
- *
- *
- * This file 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, or (at your option)
- * any later version.
- *
- * This file is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- */
-
-#ifndef _ucd_defs_h
-#define _ucd_defs_h
-
-#define UCD_OPEN	1
-#define UCD_NAMSIZ	16	/* maximum ucd name len */
-
-#define USB_CONTRLL	0
-
-/*
- * ioctl opcodes
- */
-#define LOWLEVEL_INIT		(('U'<< 8) | 0)
-#define LOWLEVEL_STOP		(('U'<< 8) | 1)
-#define SUBMIT_CONTROL_MSG	(('U'<< 8) | 2)
-#define SUBMIT_BULK_MSG		(('U'<< 8) | 3)
-#define SUBMIT_INT_MSG		(('U'<< 8) | 4)
-
-
-struct bulk_msg
-{
-	struct usb_device 	*dev;
-	unsigned long 		pipe;
-	void 			*data;
-	long 			len;
-	long                    flags;
-};
-
-struct control_msg
-{
-	struct usb_device 	*dev;
-	unsigned long 		pipe;
-	unsigned short 		value;
-	void 			*data;
-	unsigned short 		size;
-	struct devrequest	*setup;
-};
-
-struct int_msg
-{
-	struct usb_device 	*dev;
-	unsigned long 		pipe;
-	void 			*buffer;
-	long 			transfer_len;
-	long 			interval;
-};
-
-struct ucdif
-{
-	struct ucdif	*next;
-
-	long		class;
-	char		*lname;
-	char		name[UCD_NAMSIZ];
-	short		unit;
-
-	unsigned short	flags;
-
-	long		(*open)		(struct ucdif *);
-	long		(*close)	(struct ucdif *);
-	long		resrvd1;	/* (*output)  */
-	long		(*ioctl)	(struct ucdif *, short cmd, long arg);
-	long		resrvd2;	/* (*timeout) */
-	void		*ucd_priv;	/* host controller driver private data */
-
-	long		reserved[20];
-};
-
-struct ucdinfo
-{
-	short		(*getfreeunit)			(char *);
-	long		(*ucd_register)			(struct ucdif *);
-	long		(*ucd_unregister)		(struct ucdif *);
-
-	long 		(*usb_maxpacket)		(struct usb_device *, unsigned long pipe);
-	void		(*usb_rh_wakeup)		(void);
-
-	const char	*fname;
-};
-
-#endif /* _ucd_defs_h */
diff -r d5dc8e2261c7 -r 5e41069d080e sys/usb/src.km/udd/udd_defs.h
--- a/sys/usb/src.km/udd/udd_defs.h	Mon Feb 23 10:37:52 2015 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,112 +0,0 @@
-/*
- * Modified for the FreeMiNT USB subsystem by David Galvez. 2010 - 2011
- *
- * This file belongs to FreeMiNT. It's not in the original MiNT 1.12
- * distribution. See the file CHANGES for a detailed log of changes.
- *
- * Copyright 2003 Odd Skancke <ozk@atari.org>
- * All rights reserved.
- *
- * Please send suggestions, patches or bug reports to me or
- * the MiNT mailing list.
- *
- *
- * This file 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, or (at your option)
- * any later version.
- *
- * This file is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- */
-
-#ifndef _udd_defs_h
-#define _udd_defs_h
-
-#define UDD_OPEN	1
-#define UDD_NAMSIZ	16	/* maximum ucd name len */
-
-#define USB_DEVICE	0
-
-
-struct uddif
-{
-	struct uddif	*next;
-
-	long		class;
-	char		*lname;
-	char		name[UDD_NAMSIZ];
-	short		unit;
-
-	unsigned short	flags;
-
-	long		(*open)		(struct uddif *);
-	long		(*close)	(struct uddif *);
-	long		resrvd1;	/* (*output)  */
-	long		(*ioctl)	(struct uddif *, short cmd, long arg);
-	long		resrvd2;	/* (*timeout) */
-
-	long		reserved[24];
-};
-
-struct usb_module_api
-{
-//	short				(*getfreeunit)		(char *);
-	long				(*udd_register)		(struct uddif *, struct usb_driver *);
-	long				(*udd_unregister)	(struct uddif *, struct usb_driver *);
-	const char			*fname;
-
-	long			_cdecl	(*usb_set_protocol)	(struct usb_device *dev, long ifnum, long protocol);
-	long			_cdecl	(*usb_set_idle)		(struct usb_device *dev, long ifnum, long duration,
-								long report_id);
-	struct usb_device *	_cdecl	(*usb_get_dev_index)	(long idx);
-	long 			_cdecl	(*usb_control_msg)	(struct usb_device *dev, unsigned long pipe,
-								unsigned char request, unsigned char requesttype,
-								unsigned short value, unsigned short idx,
-								void *data, unsigned short size, long timeout);
-	long			_cdecl	(*usb_bulk_msg)		(struct usb_device *dev, unsigned long pipe,
-								void *data, long len, long *actual_length, long timeout, long flags);
-	long 			_cdecl	(*usb_submit_int_msg)	(struct usb_device *dev, unsigned long pipe,
-								void *buffer, long transfer_len, long interval);
-	long 			_cdecl	(*usb_disable_asynch)	(long disable);
-	long			_cdecl	(*usb_maxpacket)	(struct usb_device *dev, unsigned long pipe);
-	long			_cdecl	(*usb_get_configuration_no)	(struct usb_device *dev, unsigned char *buffer,
-									long cfgno);
-	long			_cdecl	(*usb_get_report)	(struct usb_device *dev, long ifnum, unsigned char type,
-								unsigned char id, void *buf, long size);
-	long 			_cdecl	(*usb_get_class_descriptor)	(struct usb_device *dev, long ifnum,
-									unsigned char type, unsigned char id, void *buf,
-									long size);
-	long 			_cdecl	(*usb_clear_halt)	(struct usb_device *dev, long pipe);
-	long 			_cdecl	(*usb_string)		(struct usb_device *dev, long idx, char *buf, long size);
-	long 			_cdecl	(*usb_set_interface)	(struct usb_device *dev, long interface, long alternate);
-	long			_cdecl	(*usb_parse_config)	(struct usb_device *dev, unsigned char *buffer, long cfgno);
-	long 			_cdecl	(*usb_set_maxpacket)	(struct usb_device *dev);
-	long 			_cdecl	(*usb_get_descriptor)	(struct usb_device *dev, unsigned char type,
-								unsigned char idx, void *buf, long size);
-	long 			_cdecl	(*usb_set_address)	(struct usb_device *dev);
-	long 			_cdecl	(*usb_set_configuration)(struct usb_device *dev, long configuration);
-	long 			_cdecl	(*usb_get_string)	(struct usb_device *dev, unsigned short langid,
-			   					unsigned char idx, void *buf, long size);
-	struct usb_device *	_cdecl	(*usb_alloc_new_device) (void *controller);
-	long 			_cdecl	(*usb_new_device)	(struct usb_device *dev);
-	
-	/* For now we leave this hub specific stuff out of the api */
-//	long 			_cdecl	(*usb_get_hub_descriptor)	(struct usb_device *dev, void *data, long size);
-//	long 			_cdecl	(*usb_clear_port_feature)	(struct usb_device *dev, long port, long feature);
-//	long 			_cdecl	(*usb_get_hub_status)	(struct usb_device *dev, void *data);
-//	long 			_cdecl	(*usb_set_port_feature)	(struct usb_device *dev, long port, long feature);
-//	long 			_cdecl	(*usb_get_port_status)	(struct usb_device *dev, long port, void *data);
-//	struct usb_hub_device *	_cdecl	(*usb_hub_allocate)	(void);
-//	void 			_cdecl	(*usb_hub_port_connect_change)	(struct usb_device *dev, long port);
-//	long 			_cdecl	(*usb_hub_configure)	(struct usb_device *dev);
-};
-
-#endif /* _udd_defs_h */