[PATCH] Delete unused header file media/wm8775.h.
Delete the unreferenced header file include/media/wm8775.h. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- even the matching source file drivers/media/video/wm8775.c doesn't include this header file. diff --git a/include/media/wm8775.h b/include/media/wm8775.h deleted file mode 100644 index 60739c5..000 --- a/include/media/wm8775.h +++ /dev/null @@ -1,35 +0,0 @@ -/* -wm8775.h - definition for wm8775 inputs and outputs - -Copyright (C) 2006 Hans Verkuil ([EMAIL PROTECTED]) - -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 the License, or -(at your option) any later version. - -This program 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 _WM8775_H_ -#define _WM8775_H_ - -/* The WM8775 has 4 inputs and one output. Zero or more inputs - are multiplexed together to the output. Hence there are - 16 combinations. - If only one input is active (the normal case) then the - input values 1, 2, 4 or 8 should be used. */ - -#define WM8775_AIN1 1 -#define WM8775_AIN2 2 -#define WM8775_AIN3 4 -#define WM8775_AIN4 8 - -#endif -- Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Delete unused header file media/cs53l32a.h.
Delete the unreferenced header file include/media/cs53l32a.h. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- not even the matching *source* file drivers/media/video/cs53l32a.c includes this header file. that would seem a pretty good sign that no one loves it anymore. diff --git a/include/media/cs53l32a.h b/include/media/cs53l32a.h deleted file mode 100644 index bf76197..000 --- a/include/media/cs53l32a.h +++ /dev/null @@ -1,34 +0,0 @@ -/* -cs53l32a.h - definition for cs53l32a inputs and outputs - -Copyright (C) 2006 Hans Verkuil ([EMAIL PROTECTED]) - -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 the License, or -(at your option) any later version. - -This program 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 _CS53L32A_H_ -#define _CS53L32A_H_ - -/* There are 2 physical inputs, but the second input can be - placed in two modes, the first mode bypasses the PGA (gain), - the second goes through the PGA. Hence there are three - possible inputs to choose from. */ - -/* CS53L32A HW inputs */ -#define CS53L32A_IN0 0 -#define CS53L32A_IN1 1 -#define CS53L32A_IN2 2 - -#endif -- Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Delete unused header file math-emu/extended.h.
Delete the unreferenced header file include/math-emu/extended.h. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- one more header file that absolutely no one refers to but i'm sure *someone* is going to defend to the death. diff --git a/include/math-emu/extended.h b/include/math-emu/extended.h deleted file mode 100644 index 84770fc..000 --- a/include/math-emu/extended.h +++ /dev/null @@ -1,396 +0,0 @@ -/* Software floating-point emulation. - Definitions for IEEE Extended Precision. - Copyright (C) 1999 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Jakub Jelinek ([EMAIL PROTECTED]). - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - The GNU C Library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If - not, write to the Free Software Foundation, Inc., - 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - - -#ifndef__MATH_EMU_EXTENDED_H__ -#define__MATH_EMU_EXTENDED_H__ - -#if _FP_W_TYPE_SIZE < 32 -#error "Here's a nickel, kid. Go buy yourself a real computer." -#endif - -#if _FP_W_TYPE_SIZE < 64 -#define _FP_FRACTBITS_E (4*_FP_W_TYPE_SIZE) -#else -#define _FP_FRACTBITS_E(2*_FP_W_TYPE_SIZE) -#endif - -#define _FP_FRACBITS_E 64 -#define _FP_FRACXBITS_E(_FP_FRACTBITS_E - _FP_FRACBITS_E) -#define _FP_WFRACBITS_E(_FP_WORKBITS + _FP_FRACBITS_E) -#define _FP_WFRACXBITS_E (_FP_FRACTBITS_E - _FP_WFRACBITS_E) -#define _FP_EXPBITS_E 15 -#define _FP_EXPBIAS_E 16383 -#define _FP_EXPMAX_E 32767 - -#define _FP_QNANBIT_E \ - ((_FP_W_TYPE)1 << (_FP_FRACBITS_E-2) % _FP_W_TYPE_SIZE) -#define _FP_IMPLBIT_E \ - ((_FP_W_TYPE)1 << (_FP_FRACBITS_E-1) % _FP_W_TYPE_SIZE) -#define _FP_OVERFLOW_E \ - ((_FP_W_TYPE)1 << (_FP_WFRACBITS_E % _FP_W_TYPE_SIZE)) - -#if _FP_W_TYPE_SIZE < 64 - -union _FP_UNION_E -{ - long double flt; - struct - { -#if __BYTE_ORDER == __BIG_ENDIAN - unsigned long pad1 : _FP_W_TYPE_SIZE; - unsigned long pad2 : (_FP_W_TYPE_SIZE - 1 - _FP_EXPBITS_E); - unsigned long sign : 1; - unsigned long exp : _FP_EXPBITS_E; - unsigned long frac1 : _FP_W_TYPE_SIZE; - unsigned long frac0 : _FP_W_TYPE_SIZE; -#else - unsigned long frac0 : _FP_W_TYPE_SIZE; - unsigned long frac1 : _FP_W_TYPE_SIZE; - unsigned exp : _FP_EXPBITS_E; - unsigned sign : 1; -#endif /* not bigendian */ - } bits __attribute__((packed)); -}; - - -#define FP_DECL_E(X) _FP_DECL(4,X) - -#define FP_UNPACK_RAW_E(X, val)\ - do { \ -union _FP_UNION_E _flo; _flo.flt = (val); \ - \ -X##_f[2] = 0; X##_f[3] = 0;\ -X##_f[0] = _flo.bits.frac0;\ -X##_f[1] = _flo.bits.frac1;\ -X##_e = _flo.bits.exp;\ -X##_s = _flo.bits.sign; \ -if (!X##_e && (X##_f[1] || X##_f[0]) \ -&& !(X##_f[1] & _FP_IMPLBIT_E))\ - {\ -X##_e++; \ -FP_SET_EXCEPTION(FP_EX_DENORM);\ - }\ - } while (0) - -#define FP_UNPACK_RAW_EP(X, val) \ - do { \ -union _FP_UNION_E *_flo = \ -(union _FP_UNION_E *)(val);\ - \ -X##_f[2] = 0; X##_f[3] = 0;\ -X##_f[0] = _flo->bits.frac0; \ -X##_f[1] = _flo->bits.frac1; \ -X##_e = _flo->bits.exp; \ -X##_s = _flo->bits.sign; \ -if (!X##_e && (X##_f[1] || X##_f[0]) \ -&& !(X##_f[1] & _FP_IMPLBIT_E))\ - {\ -X##_e++; \ -FP_SET_EXCEPTION(FP_EX_DENORM);\ -
[PATCH] Delete unused header file math-emu/extended.h.
Delete the unreferenced header file include/math-emu/extended.h. Signed-off-by: Robert P. J. Day [EMAIL PROTECTED] --- one more header file that absolutely no one refers to but i'm sure *someone* is going to defend to the death. diff --git a/include/math-emu/extended.h b/include/math-emu/extended.h deleted file mode 100644 index 84770fc..000 --- a/include/math-emu/extended.h +++ /dev/null @@ -1,396 +0,0 @@ -/* Software floating-point emulation. - Definitions for IEEE Extended Precision. - Copyright (C) 1999 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Jakub Jelinek ([EMAIL PROTECTED]). - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - The GNU C Library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If - not, write to the Free Software Foundation, Inc., - 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - - -#ifndef__MATH_EMU_EXTENDED_H__ -#define__MATH_EMU_EXTENDED_H__ - -#if _FP_W_TYPE_SIZE 32 -#error Here's a nickel, kid. Go buy yourself a real computer. -#endif - -#if _FP_W_TYPE_SIZE 64 -#define _FP_FRACTBITS_E (4*_FP_W_TYPE_SIZE) -#else -#define _FP_FRACTBITS_E(2*_FP_W_TYPE_SIZE) -#endif - -#define _FP_FRACBITS_E 64 -#define _FP_FRACXBITS_E(_FP_FRACTBITS_E - _FP_FRACBITS_E) -#define _FP_WFRACBITS_E(_FP_WORKBITS + _FP_FRACBITS_E) -#define _FP_WFRACXBITS_E (_FP_FRACTBITS_E - _FP_WFRACBITS_E) -#define _FP_EXPBITS_E 15 -#define _FP_EXPBIAS_E 16383 -#define _FP_EXPMAX_E 32767 - -#define _FP_QNANBIT_E \ - ((_FP_W_TYPE)1 (_FP_FRACBITS_E-2) % _FP_W_TYPE_SIZE) -#define _FP_IMPLBIT_E \ - ((_FP_W_TYPE)1 (_FP_FRACBITS_E-1) % _FP_W_TYPE_SIZE) -#define _FP_OVERFLOW_E \ - ((_FP_W_TYPE)1 (_FP_WFRACBITS_E % _FP_W_TYPE_SIZE)) - -#if _FP_W_TYPE_SIZE 64 - -union _FP_UNION_E -{ - long double flt; - struct - { -#if __BYTE_ORDER == __BIG_ENDIAN - unsigned long pad1 : _FP_W_TYPE_SIZE; - unsigned long pad2 : (_FP_W_TYPE_SIZE - 1 - _FP_EXPBITS_E); - unsigned long sign : 1; - unsigned long exp : _FP_EXPBITS_E; - unsigned long frac1 : _FP_W_TYPE_SIZE; - unsigned long frac0 : _FP_W_TYPE_SIZE; -#else - unsigned long frac0 : _FP_W_TYPE_SIZE; - unsigned long frac1 : _FP_W_TYPE_SIZE; - unsigned exp : _FP_EXPBITS_E; - unsigned sign : 1; -#endif /* not bigendian */ - } bits __attribute__((packed)); -}; - - -#define FP_DECL_E(X) _FP_DECL(4,X) - -#define FP_UNPACK_RAW_E(X, val)\ - do { \ -union _FP_UNION_E _flo; _flo.flt = (val); \ - \ -X##_f[2] = 0; X##_f[3] = 0;\ -X##_f[0] = _flo.bits.frac0;\ -X##_f[1] = _flo.bits.frac1;\ -X##_e = _flo.bits.exp;\ -X##_s = _flo.bits.sign; \ -if (!X##_e (X##_f[1] || X##_f[0]) \ - !(X##_f[1] _FP_IMPLBIT_E))\ - {\ -X##_e++; \ -FP_SET_EXCEPTION(FP_EX_DENORM);\ - }\ - } while (0) - -#define FP_UNPACK_RAW_EP(X, val) \ - do { \ -union _FP_UNION_E *_flo = \ -(union _FP_UNION_E *)(val);\ - \ -X##_f[2] = 0; X##_f[3] = 0;\ -X##_f[0] = _flo-bits.frac0; \ -X##_f[1] = _flo-bits.frac1; \ -X##_e = _flo-bits.exp; \ -X##_s = _flo-bits.sign; \ -if (!X##_e (X##_f[1] || X##_f[0]) \ - !(X##_f[1] _FP_IMPLBIT_E))\ - {\ -X##_e++; \ -FP_SET_EXCEPTION(FP_EX_DENORM);\ - }
[PATCH] Delete unused header file media/cs53l32a.h.
Delete the unreferenced header file include/media/cs53l32a.h. Signed-off-by: Robert P. J. Day [EMAIL PROTECTED] --- not even the matching *source* file drivers/media/video/cs53l32a.c includes this header file. that would seem a pretty good sign that no one loves it anymore. diff --git a/include/media/cs53l32a.h b/include/media/cs53l32a.h deleted file mode 100644 index bf76197..000 --- a/include/media/cs53l32a.h +++ /dev/null @@ -1,34 +0,0 @@ -/* -cs53l32a.h - definition for cs53l32a inputs and outputs - -Copyright (C) 2006 Hans Verkuil ([EMAIL PROTECTED]) - -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 the License, or -(at your option) any later version. - -This program 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 _CS53L32A_H_ -#define _CS53L32A_H_ - -/* There are 2 physical inputs, but the second input can be - placed in two modes, the first mode bypasses the PGA (gain), - the second goes through the PGA. Hence there are three - possible inputs to choose from. */ - -/* CS53L32A HW inputs */ -#define CS53L32A_IN0 0 -#define CS53L32A_IN1 1 -#define CS53L32A_IN2 2 - -#endif -- Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Delete unused header file media/wm8775.h.
Delete the unreferenced header file include/media/wm8775.h. Signed-off-by: Robert P. J. Day [EMAIL PROTECTED] --- even the matching source file drivers/media/video/wm8775.c doesn't include this header file. diff --git a/include/media/wm8775.h b/include/media/wm8775.h deleted file mode 100644 index 60739c5..000 --- a/include/media/wm8775.h +++ /dev/null @@ -1,35 +0,0 @@ -/* -wm8775.h - definition for wm8775 inputs and outputs - -Copyright (C) 2006 Hans Verkuil ([EMAIL PROTECTED]) - -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 the License, or -(at your option) any later version. - -This program 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 _WM8775_H_ -#define _WM8775_H_ - -/* The WM8775 has 4 inputs and one output. Zero or more inputs - are multiplexed together to the output. Hence there are - 16 combinations. - If only one input is active (the normal case) then the - input values 1, 2, 4 or 8 should be used. */ - -#define WM8775_AIN1 1 -#define WM8775_AIN2 2 -#define WM8775_AIN3 4 -#define WM8775_AIN4 8 - -#endif -- Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Delete unused header file linux/if_wanpipe_common.h.
Delete the unreferenced header file include/linux/if_wanpipe_common.h, as well as the reference to it in the Doc file. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- there is a related header file, linux/if_wanpipe.h, that is unused in the source tree but is still exported to userspace. if that file is also unnecessary, i can resubmit the patch to take out both of them. Documentation/networking/wan-router.txt |1 include/linux/if_wanpipe_common.h | 58 -- 2 files changed, 59 deletions(-) diff --git a/Documentation/networking/wan-router.txt b/Documentation/networking/wan-router.txt index 653978d..07dd6d9 100644 --- a/Documentation/networking/wan-router.txt +++ b/Documentation/networking/wan-router.txt @@ -250,7 +250,6 @@ PRODUCT COMPONENTS AND RELATED FILES sdladrv.h SDLA support module API definitions sdlasfm.h SDLA firmware module definitions if_wanpipe.hWANPIPE Socket definitions - if_wanpipe_common.h WANPIPE Socket/Driver common definitions. sdlapci.h WANPIPE PCI definitions diff --git a/include/linux/if_wanpipe_common.h b/include/linux/if_wanpipe_common.h deleted file mode 100644 index 6e5461d..000 --- a/include/linux/if_wanpipe_common.h +++ /dev/null @@ -1,58 +0,0 @@ -/* -* if_wanipe_common.h Sangoma Driver/Socket common area definitions. -* -* Author: Nenad Corbic <[EMAIL PROTECTED]> -* -* Copyright:(c) 2000 Sangoma Technologies Inc. -* -* 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 the License, or (at your option) any later version. -* -* Jan 13, 2000 Nenad Corbic Initial version -*/ - - -#ifndef _WANPIPE_SOCK_DRIVER_COMMON_H -#define _WANPIPE_SOCK_DRIVER_COMMON_H - -typedef struct { - struct net_device *slave; - atomic_t packet_sent; - atomic_t receive_block; - atomic_t command; - atomic_t disconnect; - atomic_t driver_busy; - long common_critical; - struct timer_list *tx_timer; - struct sock *sk;/* Wanpipe Sock bind's here */ - int (*func)(struct sk_buff *skb, struct net_device *dev, - struct sock *sk); - - struct work_struct wanpipe_work;/* deferred keventd work */ - unsigned char rw_bind;/* Sock bind state */ - unsigned char usedby; - unsigned char state; - unsigned char svc; - unsigned short lcn; - void *mbox; -} wanpipe_common_t; - - -enum { - WANSOCK_UNCONFIGURED, /* link/channel is not configured */ - WANSOCK_DISCONNECTED, /* link/channel is disconnected */ - WANSOCK_CONNECTING, /* connection is in progress */ - WANSOCK_CONNECTED, /* link/channel is operational */ - WANSOCK_LIMIT, /* for verification only */ - WANSOCK_DUALPORT, /* for Dual Port cards */ - WANSOCK_DISCONNECTING, - WANSOCK_BINDED, - WANSOCK_BIND_LISTEN, - WANSOCK_LISTEN -}; - -#endif - - -- Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Delete unused header file linux/sdla_fr.h.
Delete the unreferenced header file include/linux/sdla_fr.h. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/include/linux/sdla_fr.h b/include/linux/sdla_fr.h deleted file mode 100644 index cdfa77f..000 --- a/include/linux/sdla_fr.h +++ /dev/null @@ -1,638 +0,0 @@ -/* -* sdla_fr.hSangoma frame relay firmware API definitions. -* -* Author: Gideon Hack -* Nenad Corbic <[EMAIL PROTECTED]> -* -* Copyright: (c) 1995-2000 Sangoma Technologies Inc. -* -* 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 the License, or (at your option) any later version. -* -* Oct 04, 1999 Gideon Hack Updated API structures -* Jun 02, 1999 Gideon HackModifications for S514 support -* Oct 12, 1997 Jaspreet Singh Added FR_READ_DLCI_IB_MAPPING -* Jul 21, 1997 Jaspreet Singh Changed FRRES_TOO_LONG and FRRES_TOO_MANY to -* 0x05 and 0x06 respectively. -* Dec 23, 1996 Gene Kozin v2.0 -* Apr 29, 1996 Gene Kozin v1.0 (merged version S502 & S508 definitions). -* Sep 26, 1995 Gene Kozin Initial version. -*/ -#ifndef_SDLA_FR_H -#define_SDLA_FR_H - -/* - * Notes: - * -- - * 1. All structures defined in this file are byte-alined. - * - * CompilerPlatform - * - * GNU C Linux - */ - -#ifndefPACKED -#definePACKED __attribute__((packed)) -#endif /* PACKED */ - -/* Adapter memory layout */ -#defineFR_MB_VECTOR0xE000 /* mailbox window vector */ -#defineFR502_RX_VECTOR 0xA000 /* S502 direct receive window vector */ -#defineFR502_MBOX_OFFS 0xF60 /* S502 mailbox offset */ -#defineFR508_MBOX_OFFS 0 /* S508 mailbox offset */ -#defineFR502_FLAG_OFFS 0x1FF0 /* S502 status flags offset */ -#defineFR508_FLAG_OFFS 0x1000 /* S508 status flags offset */ -#defineFR502_RXMB_OFFS 0x900 /* S502 direct receive mailbox offset */ -#defineFR508_TXBC_OFFS 0x1100 /* S508 Tx buffer info offset */ -#defineFR508_RXBC_OFFS 0x1120 /* S508 Rx buffer info offset */ - -/* Important constants */ -#define FR502_MAX_DATA 4096/* maximum data buffer length */ -#define FR508_MAX_DATA 4080/* maximum data buffer length */ -#define MIN_LGTH_FR_DATA_CFG 300 /* min Information frame length -(for configuration purposes) */ -#define FR_MAX_NO_DATA_BYTES_IN_FRAME 15354 /* max Information frame length */ - -#define HIGHEST_VALID_DLCI 991 - -/** Data Structures */ - -/* - * Frame relay command block. - */ -typedef struct fr_cmd -{ - unsigned char command PACKED; /* command code */ - unsigned short length PACKED; /* length of data buffer */ - unsigned char result PACKED; /* return code */ - unsigned short dlci PACKED; /* DLCI number */ - unsigned char attr PACKED; /* FECN, BECN, DE and C/R bits */ - unsigned short rxlost1 PACKED; /* frames discarded at int. level */ - unsigned long rxlost2 PACKED; /* frames discarded at app. level */ - unsigned char rsrv[2] PACKED; /* reserved for future use */ -} fr_cmd_t; - -/* 'command' field defines */ -#defineFR_WRITE0x01 -#defineFR_READ 0x02 -#defineFR_ISSUE_IS_FRAME 0x03 -#define FR_SET_CONFIG 0x10 -#define FR_READ_CONFIG 0x11 -#define FR_COMM_DISABLE0x12 -#define FR_COMM_ENABLE 0x13 -#define FR_READ_STATUS 0x14 -#define FR_READ_STATISTICS 0x15 -#define FR_FLUSH_STATISTICS0x16 -#defineFR_LIST_ACTIVE_DLCI 0x17 -#define FR_FLUSH_DATA_BUFFERS 0x18 -#define FR_READ_ADD_DLC_STATS 0x19 -#defineFR_ADD_DLCI 0x20 -#defineFR_DELETE_DLCI 0x21 -#defineFR_ACTIVATE_DLCI0x22 -#defineFR_DEACTIVATE_DLCI 0x22 -#define FR_READ_MODEM_STATUS 0x30 -#define FR_SET_MODEM_STATUS0x31 -#define FR_READ_ERROR_STATS0x32 -#define FR_FLUSH_ERROR_STATS 0x33 -#define FR_READ_DLCI_IB_MAPPING 0x34 -#define FR_READ_CODE_VERSION 0x40 -#defineFR_SET_INTR_MODE0x50 -#defineFR_READ_INTR_MODE 0x51 -#define FR_SET_TRACE_CONFIG0x60 -#define FR_FT1_STATUS_CTRL 0x80 -#define FR_SET_FT1_MODE0x81 - -/* Special UDP drivers
[PATCH] Delete unused header file linux/awe_voice.h.
Delete the unreferenced header file include/linux/awe_voice.h. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- sorry, it's not clear who the maintainer is. diff --git a/include/linux/awe_voice.h b/include/linux/awe_voice.h deleted file mode 100644 index bf33f17..000 --- a/include/linux/awe_voice.h +++ /dev/null @@ -1,525 +0,0 @@ -/* - * include/linux/awe_voice.h - * - * Voice information definitions for the low level driver for the - * AWE32/SB32/AWE64 wave table synth. - * version 0.4.4; Jan. 4, 2000 - * - * Copyright (C) 1996-2000 Takashi Iwai - * - * 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 the License, or - * (at your option) any later version. - * - * This program 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 AWE_VOICE_H -#define AWE_VOICE_H - -#ifndef SAMPLE_TYPE_AWE32 -#define SAMPLE_TYPE_AWE32 0x20 -#endif - -#define _LINUX_PATCHKEY_H_INDIRECT -#include -#undef _LINUX_PATCHKEY_H_INDIRECT - -/* - * patch information record - **/ - -/* patch interface header: 16 bytes */ -typedef struct awe_patch_info { - short key; /* use AWE_PATCH here */ -#define AWE_PATCH _PATCHKEY(0x07) - - short device_no;/* synthesizer number */ - unsigned short sf_id; /* file id (should be zero) */ - short optarg; /* optional argument */ - int len;/* data length (without this header) */ - - short type; /* patch operation type */ -#define AWE_LOAD_INFO 0 /* awe_voice_rec */ -#define AWE_LOAD_DATA 1 /* awe_sample_info */ -#define AWE_OPEN_PATCH 2 /* awe_open_parm */ -#define AWE_CLOSE_PATCH3 /* none */ -#define AWE_UNLOAD_PATCH 4 /* none */ -#define AWE_REPLACE_DATA 5 /* awe_sample_info (optarg=#channels)*/ -#define AWE_MAP_PRESET 6 /* awe_voice_map */ -/*#define AWE_PROBE_INFO 7*/ /* awe_voice_map (pat only) */ -#define AWE_PROBE_DATA 8 /* optarg=sample */ -#define AWE_REMOVE_INFO9 /* optarg=(bank<<8)|instr */ -#define AWE_LOAD_CHORUS_FX 0x10/* awe_chorus_fx_rec (optarg=mode) */ -#define AWE_LOAD_REVERB_FX 0x11/* awe_reverb_fx_rec (optarg=mode) */ - - short reserved; /* word alignment data */ - - /* the actual patch data begins after this */ -#if defined(AWE_COMPAT_030) && AWE_COMPAT_030 - char data[0]; -#endif -} awe_patch_info; - -/*#define AWE_PATCH_INFO_SIZE 16*/ -#define AWE_PATCH_INFO_SIZEsizeof(awe_patch_info) - - -/* - * open patch - **/ - -#define AWE_PATCH_NAME_LEN 32 - -typedef struct _awe_open_parm { - unsigned short type;/* sample type */ -#define AWE_PAT_TYPE_MISC 0 -#define AWE_PAT_TYPE_GM1 -#define AWE_PAT_TYPE_GS2 -#define AWE_PAT_TYPE_MT32 3 -#define AWE_PAT_TYPE_XG4 -#define AWE_PAT_TYPE_SFX 5 -#define AWE_PAT_TYPE_GUS 6 -#define AWE_PAT_TYPE_MAP 7 - -#define AWE_PAT_LOCKED 0x100 /* lock the samples */ -#define AWE_PAT_SHARED 0x200 /* sample is shared */ - - short reserved; - char name[AWE_PATCH_NAME_LEN]; -} awe_open_parm; - -/*#define AWE_OPEN_PARM_SIZE 28*/ -#define AWE_OPEN_PARM_SIZE sizeof(awe_open_parm) - - -/* - * raw voice information record - **/ - -/* wave table envelope & effect parameters to control EMU8000 */ -typedef struct _awe_voice_parm { - unsigned short moddelay;/* modulation delay (0x8000) */ - unsigned short modatkhld; /* modulation attack & hold time (0x7f7f) */ - unsigned short moddcysus; /* modulation decay & sustain (0x7f7f) */ - unsigned short modrelease; /* modulation release time (0x807f) */ - short modkeyhold, modkeydecay; /* envelope change per key (not used) */ - unsigned short voldelay;/* volume delay (0x8000) */ - unsigned short volatkhld; /* volume attack &
[PATCH] Delete unused header file linux/awe_voice.h.
Delete the unreferenced header file include/linux/awe_voice.h. Signed-off-by: Robert P. J. Day [EMAIL PROTECTED] --- sorry, it's not clear who the maintainer is. diff --git a/include/linux/awe_voice.h b/include/linux/awe_voice.h deleted file mode 100644 index bf33f17..000 --- a/include/linux/awe_voice.h +++ /dev/null @@ -1,525 +0,0 @@ -/* - * include/linux/awe_voice.h - * - * Voice information definitions for the low level driver for the - * AWE32/SB32/AWE64 wave table synth. - * version 0.4.4; Jan. 4, 2000 - * - * Copyright (C) 1996-2000 Takashi Iwai - * - * 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 the License, or - * (at your option) any later version. - * - * This program 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 AWE_VOICE_H -#define AWE_VOICE_H - -#ifndef SAMPLE_TYPE_AWE32 -#define SAMPLE_TYPE_AWE32 0x20 -#endif - -#define _LINUX_PATCHKEY_H_INDIRECT -#include linux/patchkey.h -#undef _LINUX_PATCHKEY_H_INDIRECT - -/* - * patch information record - **/ - -/* patch interface header: 16 bytes */ -typedef struct awe_patch_info { - short key; /* use AWE_PATCH here */ -#define AWE_PATCH _PATCHKEY(0x07) - - short device_no;/* synthesizer number */ - unsigned short sf_id; /* file id (should be zero) */ - short optarg; /* optional argument */ - int len;/* data length (without this header) */ - - short type; /* patch operation type */ -#define AWE_LOAD_INFO 0 /* awe_voice_rec */ -#define AWE_LOAD_DATA 1 /* awe_sample_info */ -#define AWE_OPEN_PATCH 2 /* awe_open_parm */ -#define AWE_CLOSE_PATCH3 /* none */ -#define AWE_UNLOAD_PATCH 4 /* none */ -#define AWE_REPLACE_DATA 5 /* awe_sample_info (optarg=#channels)*/ -#define AWE_MAP_PRESET 6 /* awe_voice_map */ -/*#define AWE_PROBE_INFO 7*/ /* awe_voice_map (pat only) */ -#define AWE_PROBE_DATA 8 /* optarg=sample */ -#define AWE_REMOVE_INFO9 /* optarg=(bank8)|instr */ -#define AWE_LOAD_CHORUS_FX 0x10/* awe_chorus_fx_rec (optarg=mode) */ -#define AWE_LOAD_REVERB_FX 0x11/* awe_reverb_fx_rec (optarg=mode) */ - - short reserved; /* word alignment data */ - - /* the actual patch data begins after this */ -#if defined(AWE_COMPAT_030) AWE_COMPAT_030 - char data[0]; -#endif -} awe_patch_info; - -/*#define AWE_PATCH_INFO_SIZE 16*/ -#define AWE_PATCH_INFO_SIZEsizeof(awe_patch_info) - - -/* - * open patch - **/ - -#define AWE_PATCH_NAME_LEN 32 - -typedef struct _awe_open_parm { - unsigned short type;/* sample type */ -#define AWE_PAT_TYPE_MISC 0 -#define AWE_PAT_TYPE_GM1 -#define AWE_PAT_TYPE_GS2 -#define AWE_PAT_TYPE_MT32 3 -#define AWE_PAT_TYPE_XG4 -#define AWE_PAT_TYPE_SFX 5 -#define AWE_PAT_TYPE_GUS 6 -#define AWE_PAT_TYPE_MAP 7 - -#define AWE_PAT_LOCKED 0x100 /* lock the samples */ -#define AWE_PAT_SHARED 0x200 /* sample is shared */ - - short reserved; - char name[AWE_PATCH_NAME_LEN]; -} awe_open_parm; - -/*#define AWE_OPEN_PARM_SIZE 28*/ -#define AWE_OPEN_PARM_SIZE sizeof(awe_open_parm) - - -/* - * raw voice information record - **/ - -/* wave table envelope effect parameters to control EMU8000 */ -typedef struct _awe_voice_parm { - unsigned short moddelay;/* modulation delay (0x8000) */ - unsigned short modatkhld; /* modulation attack hold time (0x7f7f) */ - unsigned short moddcysus; /* modulation decay sustain (0x7f7f) */ - unsigned short modrelease; /* modulation release time (0x807f) */ - short modkeyhold, modkeydecay; /* envelope change per key (not used) */ - unsigned short voldelay;/* volume delay (0x8000) */ - unsigned short volatkhld; /* volume
[PATCH] Delete unused header file linux/sdla_fr.h.
Delete the unreferenced header file include/linux/sdla_fr.h. Signed-off-by: Robert P. J. Day [EMAIL PROTECTED] --- diff --git a/include/linux/sdla_fr.h b/include/linux/sdla_fr.h deleted file mode 100644 index cdfa77f..000 --- a/include/linux/sdla_fr.h +++ /dev/null @@ -1,638 +0,0 @@ -/* -* sdla_fr.hSangoma frame relay firmware API definitions. -* -* Author: Gideon Hack -* Nenad Corbic [EMAIL PROTECTED] -* -* Copyright: (c) 1995-2000 Sangoma Technologies Inc. -* -* 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 the License, or (at your option) any later version. -* -* Oct 04, 1999 Gideon Hack Updated API structures -* Jun 02, 1999 Gideon HackModifications for S514 support -* Oct 12, 1997 Jaspreet Singh Added FR_READ_DLCI_IB_MAPPING -* Jul 21, 1997 Jaspreet Singh Changed FRRES_TOO_LONG and FRRES_TOO_MANY to -* 0x05 and 0x06 respectively. -* Dec 23, 1996 Gene Kozin v2.0 -* Apr 29, 1996 Gene Kozin v1.0 (merged version S502 S508 definitions). -* Sep 26, 1995 Gene Kozin Initial version. -*/ -#ifndef_SDLA_FR_H -#define_SDLA_FR_H - -/* - * Notes: - * -- - * 1. All structures defined in this file are byte-alined. - * - * CompilerPlatform - * - * GNU C Linux - */ - -#ifndefPACKED -#definePACKED __attribute__((packed)) -#endif /* PACKED */ - -/* Adapter memory layout */ -#defineFR_MB_VECTOR0xE000 /* mailbox window vector */ -#defineFR502_RX_VECTOR 0xA000 /* S502 direct receive window vector */ -#defineFR502_MBOX_OFFS 0xF60 /* S502 mailbox offset */ -#defineFR508_MBOX_OFFS 0 /* S508 mailbox offset */ -#defineFR502_FLAG_OFFS 0x1FF0 /* S502 status flags offset */ -#defineFR508_FLAG_OFFS 0x1000 /* S508 status flags offset */ -#defineFR502_RXMB_OFFS 0x900 /* S502 direct receive mailbox offset */ -#defineFR508_TXBC_OFFS 0x1100 /* S508 Tx buffer info offset */ -#defineFR508_RXBC_OFFS 0x1120 /* S508 Rx buffer info offset */ - -/* Important constants */ -#define FR502_MAX_DATA 4096/* maximum data buffer length */ -#define FR508_MAX_DATA 4080/* maximum data buffer length */ -#define MIN_LGTH_FR_DATA_CFG 300 /* min Information frame length -(for configuration purposes) */ -#define FR_MAX_NO_DATA_BYTES_IN_FRAME 15354 /* max Information frame length */ - -#define HIGHEST_VALID_DLCI 991 - -/** Data Structures */ - -/* - * Frame relay command block. - */ -typedef struct fr_cmd -{ - unsigned char command PACKED; /* command code */ - unsigned short length PACKED; /* length of data buffer */ - unsigned char result PACKED; /* return code */ - unsigned short dlci PACKED; /* DLCI number */ - unsigned char attr PACKED; /* FECN, BECN, DE and C/R bits */ - unsigned short rxlost1 PACKED; /* frames discarded at int. level */ - unsigned long rxlost2 PACKED; /* frames discarded at app. level */ - unsigned char rsrv[2] PACKED; /* reserved for future use */ -} fr_cmd_t; - -/* 'command' field defines */ -#defineFR_WRITE0x01 -#defineFR_READ 0x02 -#defineFR_ISSUE_IS_FRAME 0x03 -#define FR_SET_CONFIG 0x10 -#define FR_READ_CONFIG 0x11 -#define FR_COMM_DISABLE0x12 -#define FR_COMM_ENABLE 0x13 -#define FR_READ_STATUS 0x14 -#define FR_READ_STATISTICS 0x15 -#define FR_FLUSH_STATISTICS0x16 -#defineFR_LIST_ACTIVE_DLCI 0x17 -#define FR_FLUSH_DATA_BUFFERS 0x18 -#define FR_READ_ADD_DLC_STATS 0x19 -#defineFR_ADD_DLCI 0x20 -#defineFR_DELETE_DLCI 0x21 -#defineFR_ACTIVATE_DLCI0x22 -#defineFR_DEACTIVATE_DLCI 0x22 -#define FR_READ_MODEM_STATUS 0x30 -#define FR_SET_MODEM_STATUS0x31 -#define FR_READ_ERROR_STATS0x32 -#define FR_FLUSH_ERROR_STATS 0x33 -#define FR_READ_DLCI_IB_MAPPING 0x34 -#define FR_READ_CODE_VERSION 0x40 -#defineFR_SET_INTR_MODE0x50 -#defineFR_READ_INTR_MODE 0x51 -#define FR_SET_TRACE_CONFIG0x60 -#define FR_FT1_STATUS_CTRL 0x80 -#define FR_SET_FT1_MODE0x81 - -/* Special UDP drivers
[PATCH] Delete unused header file linux/if_wanpipe_common.h.
Delete the unreferenced header file include/linux/if_wanpipe_common.h, as well as the reference to it in the Doc file. Signed-off-by: Robert P. J. Day [EMAIL PROTECTED] --- there is a related header file, linux/if_wanpipe.h, that is unused in the source tree but is still exported to userspace. if that file is also unnecessary, i can resubmit the patch to take out both of them. Documentation/networking/wan-router.txt |1 include/linux/if_wanpipe_common.h | 58 -- 2 files changed, 59 deletions(-) diff --git a/Documentation/networking/wan-router.txt b/Documentation/networking/wan-router.txt index 653978d..07dd6d9 100644 --- a/Documentation/networking/wan-router.txt +++ b/Documentation/networking/wan-router.txt @@ -250,7 +250,6 @@ PRODUCT COMPONENTS AND RELATED FILES sdladrv.h SDLA support module API definitions sdlasfm.h SDLA firmware module definitions if_wanpipe.hWANPIPE Socket definitions - if_wanpipe_common.h WANPIPE Socket/Driver common definitions. sdlapci.h WANPIPE PCI definitions diff --git a/include/linux/if_wanpipe_common.h b/include/linux/if_wanpipe_common.h deleted file mode 100644 index 6e5461d..000 --- a/include/linux/if_wanpipe_common.h +++ /dev/null @@ -1,58 +0,0 @@ -/* -* if_wanipe_common.h Sangoma Driver/Socket common area definitions. -* -* Author: Nenad Corbic [EMAIL PROTECTED] -* -* Copyright:(c) 2000 Sangoma Technologies Inc. -* -* 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 the License, or (at your option) any later version. -* -* Jan 13, 2000 Nenad Corbic Initial version -*/ - - -#ifndef _WANPIPE_SOCK_DRIVER_COMMON_H -#define _WANPIPE_SOCK_DRIVER_COMMON_H - -typedef struct { - struct net_device *slave; - atomic_t packet_sent; - atomic_t receive_block; - atomic_t command; - atomic_t disconnect; - atomic_t driver_busy; - long common_critical; - struct timer_list *tx_timer; - struct sock *sk;/* Wanpipe Sock bind's here */ - int (*func)(struct sk_buff *skb, struct net_device *dev, - struct sock *sk); - - struct work_struct wanpipe_work;/* deferred keventd work */ - unsigned char rw_bind;/* Sock bind state */ - unsigned char usedby; - unsigned char state; - unsigned char svc; - unsigned short lcn; - void *mbox; -} wanpipe_common_t; - - -enum { - WANSOCK_UNCONFIGURED, /* link/channel is not configured */ - WANSOCK_DISCONNECTED, /* link/channel is disconnected */ - WANSOCK_CONNECTING, /* connection is in progress */ - WANSOCK_CONNECTED, /* link/channel is operational */ - WANSOCK_LIMIT, /* for verification only */ - WANSOCK_DUALPORT, /* for Dual Port cards */ - WANSOCK_DISCONNECTING, - WANSOCK_BINDED, - WANSOCK_BIND_LISTEN, - WANSOCK_LISTEN -}; - -#endif - - -- Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Delete unused header file.
Delete apparently unused header file include/linux/elfnote.h. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- not sure who's responsible for this. diff --git a/include/linux/elfnote.h b/include/linux/elfnote.h deleted file mode 100644 index 67396db..000 --- a/include/linux/elfnote.h +++ /dev/null @@ -1,90 +0,0 @@ -#ifndef _LINUX_ELFNOTE_H -#define _LINUX_ELFNOTE_H -/* - * Helper macros to generate ELF Note structures, which are put into a - * PT_NOTE segment of the final vmlinux image. These are useful for - * including name-value pairs of metadata into the kernel binary (or - * modules?) for use by external programs. - * - * Each note has three parts: a name, a type and a desc. The name is - * intended to distinguish the note's originator, so it would be a - * company, project, subsystem, etc; it must be in a suitable form for - * use in a section name. The type is an integer which is used to tag - * the data, and is considered to be within the "name" namespace (so - * "FooCo"'s type 42 is distinct from "BarProj"'s type 42). The - * "desc" field is the actual data. There are no constraints on the - * desc field's contents, though typically they're fairly small. - * - * All notes from a given NAME are put into a section named - * .note.NAME. When the kernel image is finally linked, all the notes - * are packed into a single .notes section, which is mapped into the - * PT_NOTE segment. Because notes for a given name are grouped into - * the same section, they'll all be adjacent the output file. - * - * This file defines macros for both C and assembler use. Their - * syntax is slightly different, but they're semantically similar. - * - * See the ELF specification for more detail about ELF notes. - */ - -#ifdef __ASSEMBLER__ -/* - * Generate a structure with the same shape as Elf{32,64}_Nhdr (which - * turn out to be the same size and shape), followed by the name and - * desc data with appropriate padding. The 'desctype' argument is the - * assembler pseudo op defining the type of the data e.g. .asciz while - * 'descdata' is the data itself e.g. "hello, world". - * - * e.g. ELFNOTE(XYZCo, 42, .asciz, "forty-two") - * ELFNOTE(XYZCo, 12, .long, 0xdeadbeef) - */ -#define ELFNOTE(name, type, desctype, descdata)\ -.pushsection .note.name; \ - .align 4 ; \ - .long 2f - 1f/* namesz */; \ - .long 4f - 3f/* descsz */; \ - .long type ; \ -1:.asciz "name"; \ -2:.align 4 ; \ -3:desctype descdata; \ -4:.align 4 ; \ -.popsection; -#else /* !__ASSEMBLER__ */ -#include -/* - * Use an anonymous structure which matches the shape of - * Elf{32,64}_Nhdr, but includes the name and desc data. The size and - * type of name and desc depend on the macro arguments. "name" must - * be a literal string, and "desc" must be passed by value. You may - * only define one note per line, since __LINE__ is used to generate - * unique symbols. - */ -#define _ELFNOTE_PASTE(a,b)a##b -#define _ELFNOTE(size, name, unique, type, desc) \ - static const struct { \ - struct elf##size##_note _nhdr; \ - unsigned char _name[sizeof(name)] \ - __attribute__((aligned(sizeof(Elf##size##_Word; \ - typeof(desc) _desc \ - __attribute__((aligned(sizeof(Elf##size##_Word; \ - } _ELFNOTE_PASTE(_note_, unique)\ - __attribute_used__ \ - __attribute__((section(".note." name), \ - aligned(sizeof(Elf##size##_Word)), \ - unused)) = { \ - { \ - sizeof(name), \ - sizeof(desc), \ - type, \ - }, \ - name, \ - desc\ - } -#define ELFNOTE(size, name, type, desc)\ - _ELFNOTE(size, name, __LINE__, type, desc) - -#define ELFNOTE32(name, type, desc) ELFNOTE(32, name, type, desc) -#define ELFNOTE64(name, type, desc) ELFNOTE(64, name, type, desc) -#endif /* __ASSEMBLER__ */ - -#endif /* _LINUX_ELFNOTE_H */ --
[PATCH] Delete unused header file.
Delete apparently unused header file drivers/char/digi.h. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- not sure who the proper maintainer is on this one. diff --git a/drivers/char/digi.h b/drivers/char/digi.h deleted file mode 100644 index 19df0e8..000 --- a/drivers/char/digi.h +++ /dev/null @@ -1,71 +0,0 @@ -/* Definitions for DigiBoard ditty(1) command. */ - -#if !defined(TIOCMODG) -#defineTIOCMODG(('d'<<8) | 250)/* get modem ctrl state */ -#defineTIOCMODS(('d'<<8) | 251)/* set modem ctrl state */ -#endif - -#if !defined(TIOCMSET) -#defineTIOCMSET(('d'<<8) | 252)/* set modem ctrl state */ -#defineTIOCMGET(('d'<<8) | 253)/* set modem ctrl state */ -#endif - -#if !defined(TIOCMBIC) -#defineTIOCMBIC(('d'<<8) | 254)/* set modem ctrl state */ -#defineTIOCMBIS(('d'<<8) | 255)/* set modem ctrl state */ -#endif - -#if !defined(TIOCSDTR) -#defineTIOCSDTR(('e'<<8) | 0) /* set DTR */ -#defineTIOCCDTR(('e'<<8) | 1) /* clear DTR */ -#endif - -/ - * Ioctl command arguments for DIGI parameters. - / -#define DIGI_GETA (('e'<<8) | 94) /* Read params */ - -#define DIGI_SETA (('e'<<8) | 95) /* Set params */ -#define DIGI_SETAW (('e'<<8) | 96) /* Drain & set params */ -#define DIGI_SETAF (('e'<<8) | 97) /* Drain, flush & set params */ - -#defineDIGI_GETFLOW(('e'<<8) | 99) /* Get startc/stopc flow */ - /* control characters*/ -#defineDIGI_SETFLOW(('e'<<8) | 100)/* Set startc/stopc flow */ - /* control characters*/ -#defineDIGI_GETAFLOW (('e'<<8) | 101)/* Get Aux. startc/stopc */ - /* flow control chars*/ -#defineDIGI_SETAFLOW (('e'<<8) | 102)/* Set Aux. startc/stopc */ - /* flow control chars*/ - -struct digiflow_struct { - unsigned char startc; /* flow cntl start char */ - unsigned char stopc; /* flow cntl stop char */ -}; - -typedef struct digiflow_struct digiflow_t; - - -/ - * Values for digi_flags - / -#define DIGI_IXON 0x0001 /* Handle IXON in the FEP */ -#define DIGI_FAST 0x0002 /* Fast baud rates */ -#define RTSPACE0x0004 /* RTS input flow control */ -#define CTSPACE0x0008 /* CTS output flow control */ -#define DSRPACE0x0010 /* DSR output flow control */ -#define DCDPACE0x0020 /* DCD output flow control */ -#define DTRPACE0x0040 /* DTR input flow control */ -#define DIGI_FORCEDCD 0x0100 /* Force carrier*/ -#defineDIGI_ALTPIN 0x0200 /* Alternate RJ-45 pin config */ -#defineDIGI_AIXON 0x0400 /* Aux flow control in fep */ - - -/ - * Structure used with ioctl commands for DIGI parameters. - / -struct digi_struct { - unsigned short digi_flags; /* Flags (see above)*/ -}; - -typedef struct digi_struct digi_t; -- Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Delete unused header file.
Delete apparently unused header file drivers/char/digi.h. Signed-off-by: Robert P. J. Day [EMAIL PROTECTED] --- not sure who the proper maintainer is on this one. diff --git a/drivers/char/digi.h b/drivers/char/digi.h deleted file mode 100644 index 19df0e8..000 --- a/drivers/char/digi.h +++ /dev/null @@ -1,71 +0,0 @@ -/* Definitions for DigiBoard ditty(1) command. */ - -#if !defined(TIOCMODG) -#defineTIOCMODG(('d'8) | 250)/* get modem ctrl state */ -#defineTIOCMODS(('d'8) | 251)/* set modem ctrl state */ -#endif - -#if !defined(TIOCMSET) -#defineTIOCMSET(('d'8) | 252)/* set modem ctrl state */ -#defineTIOCMGET(('d'8) | 253)/* set modem ctrl state */ -#endif - -#if !defined(TIOCMBIC) -#defineTIOCMBIC(('d'8) | 254)/* set modem ctrl state */ -#defineTIOCMBIS(('d'8) | 255)/* set modem ctrl state */ -#endif - -#if !defined(TIOCSDTR) -#defineTIOCSDTR(('e'8) | 0) /* set DTR */ -#defineTIOCCDTR(('e'8) | 1) /* clear DTR */ -#endif - -/ - * Ioctl command arguments for DIGI parameters. - / -#define DIGI_GETA (('e'8) | 94) /* Read params */ - -#define DIGI_SETA (('e'8) | 95) /* Set params */ -#define DIGI_SETAW (('e'8) | 96) /* Drain set params */ -#define DIGI_SETAF (('e'8) | 97) /* Drain, flush set params */ - -#defineDIGI_GETFLOW(('e'8) | 99) /* Get startc/stopc flow */ - /* control characters*/ -#defineDIGI_SETFLOW(('e'8) | 100)/* Set startc/stopc flow */ - /* control characters*/ -#defineDIGI_GETAFLOW (('e'8) | 101)/* Get Aux. startc/stopc */ - /* flow control chars*/ -#defineDIGI_SETAFLOW (('e'8) | 102)/* Set Aux. startc/stopc */ - /* flow control chars*/ - -struct digiflow_struct { - unsigned char startc; /* flow cntl start char */ - unsigned char stopc; /* flow cntl stop char */ -}; - -typedef struct digiflow_struct digiflow_t; - - -/ - * Values for digi_flags - / -#define DIGI_IXON 0x0001 /* Handle IXON in the FEP */ -#define DIGI_FAST 0x0002 /* Fast baud rates */ -#define RTSPACE0x0004 /* RTS input flow control */ -#define CTSPACE0x0008 /* CTS output flow control */ -#define DSRPACE0x0010 /* DSR output flow control */ -#define DCDPACE0x0020 /* DCD output flow control */ -#define DTRPACE0x0040 /* DTR input flow control */ -#define DIGI_FORCEDCD 0x0100 /* Force carrier*/ -#defineDIGI_ALTPIN 0x0200 /* Alternate RJ-45 pin config */ -#defineDIGI_AIXON 0x0400 /* Aux flow control in fep */ - - -/ - * Structure used with ioctl commands for DIGI parameters. - / -struct digi_struct { - unsigned short digi_flags; /* Flags (see above)*/ -}; - -typedef struct digi_struct digi_t; -- Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Delete unused header file.
Delete apparently unused header file include/linux/elfnote.h. Signed-off-by: Robert P. J. Day [EMAIL PROTECTED] --- not sure who's responsible for this. diff --git a/include/linux/elfnote.h b/include/linux/elfnote.h deleted file mode 100644 index 67396db..000 --- a/include/linux/elfnote.h +++ /dev/null @@ -1,90 +0,0 @@ -#ifndef _LINUX_ELFNOTE_H -#define _LINUX_ELFNOTE_H -/* - * Helper macros to generate ELF Note structures, which are put into a - * PT_NOTE segment of the final vmlinux image. These are useful for - * including name-value pairs of metadata into the kernel binary (or - * modules?) for use by external programs. - * - * Each note has three parts: a name, a type and a desc. The name is - * intended to distinguish the note's originator, so it would be a - * company, project, subsystem, etc; it must be in a suitable form for - * use in a section name. The type is an integer which is used to tag - * the data, and is considered to be within the name namespace (so - * FooCo's type 42 is distinct from BarProj's type 42). The - * desc field is the actual data. There are no constraints on the - * desc field's contents, though typically they're fairly small. - * - * All notes from a given NAME are put into a section named - * .note.NAME. When the kernel image is finally linked, all the notes - * are packed into a single .notes section, which is mapped into the - * PT_NOTE segment. Because notes for a given name are grouped into - * the same section, they'll all be adjacent the output file. - * - * This file defines macros for both C and assembler use. Their - * syntax is slightly different, but they're semantically similar. - * - * See the ELF specification for more detail about ELF notes. - */ - -#ifdef __ASSEMBLER__ -/* - * Generate a structure with the same shape as Elf{32,64}_Nhdr (which - * turn out to be the same size and shape), followed by the name and - * desc data with appropriate padding. The 'desctype' argument is the - * assembler pseudo op defining the type of the data e.g. .asciz while - * 'descdata' is the data itself e.g. hello, world. - * - * e.g. ELFNOTE(XYZCo, 42, .asciz, forty-two) - * ELFNOTE(XYZCo, 12, .long, 0xdeadbeef) - */ -#define ELFNOTE(name, type, desctype, descdata)\ -.pushsection .note.name; \ - .align 4 ; \ - .long 2f - 1f/* namesz */; \ - .long 4f - 3f/* descsz */; \ - .long type ; \ -1:.asciz name; \ -2:.align 4 ; \ -3:desctype descdata; \ -4:.align 4 ; \ -.popsection; -#else /* !__ASSEMBLER__ */ -#include linux/elf.h -/* - * Use an anonymous structure which matches the shape of - * Elf{32,64}_Nhdr, but includes the name and desc data. The size and - * type of name and desc depend on the macro arguments. name must - * be a literal string, and desc must be passed by value. You may - * only define one note per line, since __LINE__ is used to generate - * unique symbols. - */ -#define _ELFNOTE_PASTE(a,b)a##b -#define _ELFNOTE(size, name, unique, type, desc) \ - static const struct { \ - struct elf##size##_note _nhdr; \ - unsigned char _name[sizeof(name)] \ - __attribute__((aligned(sizeof(Elf##size##_Word; \ - typeof(desc) _desc \ - __attribute__((aligned(sizeof(Elf##size##_Word; \ - } _ELFNOTE_PASTE(_note_, unique)\ - __attribute_used__ \ - __attribute__((section(.note. name), \ - aligned(sizeof(Elf##size##_Word)), \ - unused)) = { \ - { \ - sizeof(name), \ - sizeof(desc), \ - type, \ - }, \ - name, \ - desc\ - } -#define ELFNOTE(size, name, type, desc)\ - _ELFNOTE(size, name, __LINE__, type, desc) - -#define ELFNOTE32(name, type, desc) ELFNOTE(32, name, type, desc) -#define ELFNOTE64(name, type, desc) ELFNOTE(64, name, type, desc) -#endif /* __ASSEMBLER__ */ - -#endif /* _LINUX_ELFNOTE_H */ --