]>
Commit | Line | Data |
---|---|---|
9afe6125 AM |
1 | Submitted By: Jeremy Utley <jeremy@linuxfromscratch.org> |
2 | Date: 2004-09-25 | |
3 | Initial package Version: 0.0.8 | |
4 | Upstream Status: Not Submitted (Hack) | |
5 | Origin: Ported from Debian ax25-utils-0.0.8-5 Diff | |
6 | Description: This unmaintained package has a problem compiling on a system | |
7 | based from the linux-libc-headers, since the soundmodem driver and it's | |
8 | associated header file has been removed from kernel 2.6. This patch places the | |
9 | soundmodem.h header file into the source package itself, allowing proper | |
10 | compilation. This is a hack solution, the better solution would be to remove | |
11 | any references to the header from the source. | |
12 | ||
13 | diff -Naur ax25-tools-0.0.8/hdlcutil/hdrvcomm.h ax25-tools-0.0.8-new/hdlcutil/hdrvcomm.h | |
14 | --- ax25-tools-0.0.8/hdlcutil/hdrvcomm.h 2001-04-10 02:10:48.000000000 +0000 | |
15 | +++ ax25-tools-0.0.8-new/hdlcutil/hdrvcomm.h 2004-09-26 04:46:53.390747547 +0000 | |
16 | @@ -42,7 +42,7 @@ | |
17 | ||
18 | #ifdef HDRVC_KERNEL | |
19 | #include <linux/hdlcdrv.h> | |
20 | -#include <linux/soundmodem.h> | |
21 | +#include "soundmodem.h" | |
22 | #include <linux/baycom.h> | |
23 | #endif /* HDRVC_KERNEL */ | |
24 | ||
25 | diff -Naur ax25-tools-0.0.8/hdlcutil/soundmodem.h ax25-tools-0.0.8-new/hdlcutil/soundmodem.h | |
26 | --- ax25-tools-0.0.8/hdlcutil/soundmodem.h 1970-01-01 00:00:00.000000000 +0000 | |
27 | +++ ax25-tools-0.0.8-new/hdlcutil/soundmodem.h 2004-09-26 04:46:53.392747063 +0000 | |
28 | @@ -0,0 +1,90 @@ | |
29 | +/* | |
30 | + * The Linux soundcard driver for 1200 baud and 9600 baud packet radio | |
31 | + * (C) 1996-1998 by Thomas Sailer, HB9JNX/AE4WA | |
32 | + */ | |
33 | + | |
34 | +#ifndef _SOUNDMODEM_H | |
35 | +#define _SOUNDMODEM_H | |
36 | + | |
37 | +/* -------------------------------------------------------------------- */ | |
38 | +/* | |
39 | + * structs for the IOCTL commands | |
40 | + */ | |
41 | + | |
42 | +struct sm_debug_data { | |
43 | + unsigned int int_rate; | |
44 | + unsigned int mod_cycles; | |
45 | + unsigned int demod_cycles; | |
46 | + unsigned int dma_residue; | |
47 | +}; | |
48 | + | |
49 | +struct sm_diag_data { | |
50 | + unsigned int mode; | |
51 | + unsigned int flags; | |
52 | + unsigned int samplesperbit; | |
53 | + unsigned int datalen; | |
54 | + short *data; | |
55 | +}; | |
56 | + | |
57 | +struct sm_mixer_data { | |
58 | + unsigned int mixer_type; | |
59 | + unsigned int sample_rate; | |
60 | + unsigned int bit_rate; | |
61 | + unsigned int reg; | |
62 | + unsigned int data; | |
63 | +}; | |
64 | + | |
65 | +struct sm_config { | |
66 | + int hardware; | |
67 | + int mode; | |
68 | +}; | |
69 | + | |
70 | +struct sm_ioctl { | |
71 | + int cmd; | |
72 | + union { | |
73 | + struct sm_config cfg; | |
74 | + struct sm_diag_data diag; | |
75 | + struct sm_mixer_data mix; | |
76 | + struct sm_debug_data dbg; | |
77 | + } data; | |
78 | +}; | |
79 | + | |
80 | +/* -------------------------------------------------------------------- */ | |
81 | + | |
82 | +/* | |
83 | + * diagnose modes | |
84 | + */ | |
85 | +#define SM_DIAGMODE_OFF 0 | |
86 | +#define SM_DIAGMODE_INPUT 1 | |
87 | +#define SM_DIAGMODE_DEMOD 2 | |
88 | +#define SM_DIAGMODE_CONSTELLATION 3 | |
89 | + | |
90 | +/* | |
91 | + * diagnose flags | |
92 | + */ | |
93 | +#define SM_DIAGFLAG_DCDGATE (1<<0) | |
94 | +#define SM_DIAGFLAG_VALID (1<<1) | |
95 | + | |
96 | +/* | |
97 | + * mixer types | |
98 | + */ | |
99 | +#define SM_MIXER_INVALID 0 | |
100 | +#define SM_MIXER_AD1848 0x10 | |
101 | +#define SM_MIXER_CRYSTAL 0x11 | |
102 | +#define SM_MIXER_CT1335 0x20 | |
103 | +#define SM_MIXER_CT1345 0x21 | |
104 | +#define SM_MIXER_CT1745 0x22 | |
105 | + | |
106 | +/* | |
107 | + * ioctl values | |
108 | + */ | |
109 | +#define SMCTL_DIAGNOSE 0x82 | |
110 | +#define SMCTL_GETMIXER 0x83 | |
111 | +#define SMCTL_SETMIXER 0x84 | |
112 | +#define SMCTL_GETDEBUG 0x85 | |
113 | + | |
114 | +/* -------------------------------------------------------------------- */ | |
115 | + | |
116 | +#endif /* _SOUNDMODEM_H */ | |
117 | + | |
118 | +/* --------------------------------------------------------------------- */ |