]> git.pld-linux.org Git - packages/emu10k1-utils.git/blob - emu10k1-utils-nokernel.patch
- move .pdf and .ps files to distfiles
[packages/emu10k1-utils.git] / emu10k1-utils-nokernel.patch
1 --- emu-tools-0.9.4/mixer/include/bitops.h.orig 1970-01-01 00:00:00.000000000 +0000
2 +++ emu-tools-0.9.4/mixer/include/bitops.h      2004-05-06 19:59:13.000000000 +0000
3 @@ -0,0 +1,60 @@
4 +#ifndef _BITOPS_H
5 +#define _BITOPS_H
6 +
7 +/* based on linux/include/asm-generic/bitops.h by Theodore Ts'o
8 +   and linux/include/asm-sh/bitops.h */
9 +
10 +static __inline__ int set_bit(int nr, __u32 * addr)
11 +{
12 +       int     mask, retval;
13 +
14 +        addr += nr >> 5;
15 +        mask = 1 << (nr & 0x1f);
16 +        retval = (mask & *addr) != 0;
17 +        *addr |= mask;
18 +        return retval;
19 +}
20 +
21 +extern __inline__ int clear_bit(int nr, __u32 * addr)
22 +{
23 +       int     mask, retval;
24 +
25 +       addr += nr >> 5;
26 +       mask = 1 << (nr & 0x1f);
27 +       retval = (mask & *addr) != 0;
28 +       *addr &= ~mask;
29 +       return retval;
30 +}
31 +
32 +static __inline__ int test_bit(int nr, const __u32 * addr)
33 +{
34 +       return 1UL & ((addr[nr >> 5]) >> (nr & 31));
35 +}
36 +
37 +static __inline__ int test_and_set_bit(int nr, __u32 * addr)
38 +{
39 +       int     mask, retval;
40 +       __u32 *a = addr;
41 +       
42 +       a += nr >> 5;
43 +       mask = 1 << (nr & 0x1f);
44 +       retval = (mask & *a) != 0;
45 +       *a |= mask;
46 +       
47 +       return retval;
48 +}
49 +
50 +static __inline__ int test_and_clear_bit(int nr, __u32 * addr)
51 +{
52 +       int     mask, retval;
53 +       __u32 *a = addr;
54 +       
55 +       a += nr >> 5;
56 +       mask = 1 << (nr & 0x1f);
57 +       retval = (mask & *a) != 0;
58 +       *a &= ~mask;
59 +       
60 +       return retval;
61 +}
62 +
63 +#endif
64 --- emu-tools-0.9.4/mixer/include/dsp.h.orig    2002-01-20 02:00:16.000000000 +0000
65 +++ emu-tools-0.9.4/mixer/include/dsp.h 2004-05-06 19:48:27.000000000 +0000
66 @@ -26,8 +26,7 @@
67  #include <stdint.h>
68  
69  #include <linux/types.h>
70 -#include <linux/bitops.h>
71 -
72 +#include "bitops.h"
73  #include "list.h"
74  
75  #define DSP_NUM_INPUTS 0x20
76 --- emu-tools-0.9.4/epache-0.1.4/bitops.h.orig  1970-01-01 00:00:00.000000000 +0000
77 +++ emu-tools-0.9.4/epache-0.1.4/bitops.h       2004-05-06 20:02:41.000000000 +0000
78 @@ -0,0 +1,60 @@
79 +#ifndef _BITOPS_H
80 +#define _BITOPS_H
81 +
82 +/* based on linux/include/asm-generic/bitops.h by Theodore Ts'o
83 +   and linux/include/asm-sh/bitops.h */
84 +
85 +static __inline__ int set_bit(int nr, __u32 * addr)
86 +{
87 +       int     mask, retval;
88 +
89 +        addr += nr >> 5;
90 +        mask = 1 << (nr & 0x1f);
91 +        retval = (mask & *addr) != 0;
92 +        *addr |= mask;
93 +        return retval;
94 +}
95 +
96 +extern __inline__ int clear_bit(int nr, __u32 * addr)
97 +{
98 +       int     mask, retval;
99 +
100 +       addr += nr >> 5;
101 +       mask = 1 << (nr & 0x1f);
102 +       retval = (mask & *addr) != 0;
103 +       *addr &= ~mask;
104 +       return retval;
105 +}
106 +
107 +static __inline__ int test_bit(int nr, const __u32 * addr)
108 +{
109 +       return 1UL & ((addr[nr >> 5]) >> (nr & 31));
110 +}
111 +
112 +static __inline__ int test_and_set_bit(int nr, __u32 * addr)
113 +{
114 +       int     mask, retval;
115 +       __u32 *a = addr;
116 +       
117 +       a += nr >> 5;
118 +       mask = 1 << (nr & 0x1f);
119 +       retval = (mask & *a) != 0;
120 +       *a |= mask;
121 +       
122 +       return retval;
123 +}
124 +
125 +static __inline__ int test_and_clear_bit(int nr, __u32 * addr)
126 +{
127 +       int     mask, retval;
128 +       __u32 *a = addr;
129 +       
130 +       a += nr >> 5;
131 +       mask = 1 << (nr & 0x1f);
132 +       retval = (mask & *a) != 0;
133 +       *a &= ~mask;
134 +       
135 +       return retval;
136 +}
137 +
138 +#endif
139 --- emu-tools-0.9.4/epache-0.1.4/emudsp.h.orig  2001-08-22 21:01:07.000000000 +0000
140 +++ emu-tools-0.9.4/epache-0.1.4/emudsp.h       2004-05-06 20:06:18.000000000 +0000
141 @@ -9,9 +9,8 @@
142  #include <fcntl.h>
143  #include <sys/ioctl.h>
144  #include <linux/soundcard.h>
145 -#include <linux/bitops.h>
146 -
147  #include <linux/types.h>
148 +#include "bitops.h"
149  
150  #include <glib.h>
151  
This page took 0.09129 seconds and 3 git commands to generate.