diff options
| author | Takashi Iwai <tiwai@suse.de> | 2009-12-15 04:29:06 -0500 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2009-12-15 04:29:06 -0500 |
| commit | 709334c87dbdb44150ce436b3d13c814db0dcae9 (patch) | |
| tree | 5861a45f70c1f283720337abd864498f5afb3dbe /include/linux/compat.h | |
| parent | 0d64b568fcd48b133721c1d322e7c51d85eb12df (diff) | |
| parent | f74890277a196949e4004fe2955e1d4fb3930f98 (diff) | |
Merge branch 'fixes' of git://git.alsa-project.org/alsa-kernel into for-linus
Diffstat (limited to 'include/linux/compat.h')
| -rw-r--r-- | include/linux/compat.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h index af931ee43dd8..ef68119a4fd2 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
| @@ -10,6 +10,8 @@ | |||
| 10 | #include <linux/stat.h> | 10 | #include <linux/stat.h> |
| 11 | #include <linux/param.h> /* for HZ */ | 11 | #include <linux/param.h> /* for HZ */ |
| 12 | #include <linux/sem.h> | 12 | #include <linux/sem.h> |
| 13 | #include <linux/socket.h> | ||
| 14 | #include <linux/if.h> | ||
| 13 | 15 | ||
| 14 | #include <asm/compat.h> | 16 | #include <asm/compat.h> |
| 15 | #include <asm/siginfo.h> | 17 | #include <asm/siginfo.h> |
| @@ -154,6 +156,48 @@ typedef struct compat_sigevent { | |||
| 154 | } _sigev_un; | 156 | } _sigev_un; |
| 155 | } compat_sigevent_t; | 157 | } compat_sigevent_t; |
| 156 | 158 | ||
| 159 | struct compat_ifmap { | ||
| 160 | compat_ulong_t mem_start; | ||
| 161 | compat_ulong_t mem_end; | ||
| 162 | unsigned short base_addr; | ||
| 163 | unsigned char irq; | ||
| 164 | unsigned char dma; | ||
| 165 | unsigned char port; | ||
| 166 | }; | ||
| 167 | |||
| 168 | struct compat_if_settings | ||
| 169 | { | ||
| 170 | unsigned int type; /* Type of physical device or protocol */ | ||
| 171 | unsigned int size; /* Size of the data allocated by the caller */ | ||
| 172 | compat_uptr_t ifs_ifsu; /* union of pointers */ | ||
| 173 | }; | ||
| 174 | |||
| 175 | struct compat_ifreq { | ||
| 176 | union { | ||
| 177 | char ifrn_name[IFNAMSIZ]; /* if name, e.g. "en0" */ | ||
| 178 | } ifr_ifrn; | ||
| 179 | union { | ||
| 180 | struct sockaddr ifru_addr; | ||
| 181 | struct sockaddr ifru_dstaddr; | ||
| 182 | struct sockaddr ifru_broadaddr; | ||
| 183 | struct sockaddr ifru_netmask; | ||
| 184 | struct sockaddr ifru_hwaddr; | ||
| 185 | short ifru_flags; | ||
| 186 | compat_int_t ifru_ivalue; | ||
| 187 | compat_int_t ifru_mtu; | ||
| 188 | struct compat_ifmap ifru_map; | ||
| 189 | char ifru_slave[IFNAMSIZ]; /* Just fits the size */ | ||
| 190 | char ifru_newname[IFNAMSIZ]; | ||
| 191 | compat_caddr_t ifru_data; | ||
| 192 | struct compat_if_settings ifru_settings; | ||
| 193 | } ifr_ifru; | ||
| 194 | }; | ||
| 195 | |||
| 196 | struct compat_ifconf { | ||
| 197 | compat_int_t ifc_len; /* size of buffer */ | ||
| 198 | compat_caddr_t ifcbuf; | ||
| 199 | }; | ||
| 200 | |||
| 157 | struct compat_robust_list { | 201 | struct compat_robust_list { |
| 158 | compat_uptr_t next; | 202 | compat_uptr_t next; |
| 159 | }; | 203 | }; |
