Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17028
b: refs/heads/master
c: 6a87818
h: refs/heads/master
v: v3
  • Loading branch information
Jan Blunck authored and Linus Torvalds committed Jan 9, 2006
1 parent 64f4756 commit 4a156c2
Show file tree
Hide file tree
Showing 16 changed files with 342 additions and 342 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d8a33496671e4533aed090793436d58debea6f3a
refs/heads/master: 6a878184c202395ea17212f111ab9ec4b5f6d6ee
18 changes: 9 additions & 9 deletions trunk/drivers/isdn/hisax/hisax.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,17 +396,17 @@ struct isar_hw {

struct hdlc_stat_reg {
#ifdef __BIG_ENDIAN
u_char fill __attribute__((packed));
u_char mode __attribute__((packed));
u_char xml __attribute__((packed));
u_char cmd __attribute__((packed));
u_char fill;
u_char mode;
u_char xml;
u_char cmd;
#else
u_char cmd __attribute__((packed));
u_char xml __attribute__((packed));
u_char mode __attribute__((packed));
u_char fill __attribute__((packed));
u_char cmd;
u_char xml;
u_char mode;
u_char fill;
#endif
};
} __attribute__((packed));

struct hdlc_hw {
union {
Expand Down
18 changes: 9 additions & 9 deletions trunk/drivers/isdn/hisax/hisax_fcpcipnp.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ enum {

struct hdlc_stat_reg {
#ifdef __BIG_ENDIAN
u_char fill __attribute__((packed));
u_char mode __attribute__((packed));
u_char xml __attribute__((packed));
u_char cmd __attribute__((packed));
u_char fill;
u_char mode;
u_char xml;
u_char cmd;
#else
u_char cmd __attribute__((packed));
u_char xml __attribute__((packed));
u_char mode __attribute__((packed));
u_char fill __attribute__((packed));
u_char cmd;
u_char xml;
u_char mode;
u_char fill;
#endif
};
} __attribute__((packed));

struct fritz_bcs {
struct hisax_b_if b_if;
Expand Down
50 changes: 25 additions & 25 deletions trunk/drivers/net/3c527.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,43 +32,43 @@

struct mc32_mailbox
{
u16 mbox __attribute((packed));
u16 data[1] __attribute((packed));
};
u16 mbox;
u16 data[1];
} __attribute((packed));

struct skb_header
{
u8 status __attribute((packed));
u8 control __attribute((packed));
u16 next __attribute((packed)); /* Do not change! */
u16 length __attribute((packed));
u32 data __attribute((packed));
};
u8 status;
u8 control;
u16 next; /* Do not change! */
u16 length;
u32 data;
} __attribute((packed));

struct mc32_stats
{
/* RX Errors */
u32 rx_crc_errors __attribute((packed));
u32 rx_alignment_errors __attribute((packed));
u32 rx_overrun_errors __attribute((packed));
u32 rx_tooshort_errors __attribute((packed));
u32 rx_toolong_errors __attribute((packed));
u32 rx_outofresource_errors __attribute((packed));
u32 rx_crc_errors;
u32 rx_alignment_errors;
u32 rx_overrun_errors;
u32 rx_tooshort_errors;
u32 rx_toolong_errors;
u32 rx_outofresource_errors;

u32 rx_discarded __attribute((packed)); /* via card pattern match filter */
u32 rx_discarded; /* via card pattern match filter */

/* TX Errors */
u32 tx_max_collisions __attribute((packed));
u32 tx_carrier_errors __attribute((packed));
u32 tx_underrun_errors __attribute((packed));
u32 tx_cts_errors __attribute((packed));
u32 tx_timeout_errors __attribute((packed)) ;
u32 tx_max_collisions;
u32 tx_carrier_errors;
u32 tx_underrun_errors;
u32 tx_cts_errors;
u32 tx_timeout_errors;

/* various cruft */
u32 dataA[6] __attribute((packed));
u16 dataB[5] __attribute((packed));
u32 dataC[14] __attribute((packed));
};
u32 dataA[6];
u16 dataB[5];
u32 dataC[14];
} __attribute((packed));

#define STATUS_MASK 0x0F
#define COMPLETED (1<<7)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/irda/vlsi_ir.h
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ struct ring_descr_hw {
struct {
u8 addr_res[3];
volatile u8 status; /* descriptor status */
} rd_s __attribute__((packed));
} rd_u __attribute((packed));
} __attribute__((packed)) rd_s;
} __attribute((packed)) rd_u;
} __attribute__ ((packed));

#define rd_addr rd_u.addr
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/wan/sdla.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ static int sdla_cpuspeed(struct net_device *dev, struct ifreq *ifr)

struct _dlci_stat
{
short dlci __attribute__((packed));
char flags __attribute__((packed));
};
short dlci;
char flags;
} __attribute__((packed));

struct _frad_stat
{
Expand Down
18 changes: 9 additions & 9 deletions trunk/include/linux/atalk.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ struct elapaarp {
#define AARP_REQUEST 1
#define AARP_REPLY 2
#define AARP_PROBE 3
__u8 hw_src[ETH_ALEN] __attribute__ ((packed));
__u8 pa_src_zero __attribute__ ((packed));
__be16 pa_src_net __attribute__ ((packed));
__u8 pa_src_node __attribute__ ((packed));
__u8 hw_dst[ETH_ALEN] __attribute__ ((packed));
__u8 pa_dst_zero __attribute__ ((packed));
__be16 pa_dst_net __attribute__ ((packed));
__u8 pa_dst_node __attribute__ ((packed));
};
__u8 hw_src[ETH_ALEN];
__u8 pa_src_zero;
__be16 pa_src_net;
__u8 pa_src_node;
__u8 hw_dst[ETH_ALEN];
__u8 pa_dst_zero;
__be16 pa_dst_net;
__u8 pa_dst_node;
} __attribute__ ((packed));

static __inline__ struct elapaarp *aarp_hdr(struct sk_buff *skb)
{
Expand Down
66 changes: 33 additions & 33 deletions trunk/include/linux/cycx_x25.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ extern unsigned int cycx_debug;
/* Data Structures */
/* X.25 Command Block. */
struct cycx_x25_cmd {
u16 command PACKED;
u16 link PACKED; /* values: 0 or 1 */
u16 len PACKED; /* values: 0 thru 0x205 (517) */
u32 buf PACKED;
};
u16 command;
u16 link; /* values: 0 or 1 */
u16 len; /* values: 0 thru 0x205 (517) */
u32 buf;
} PACKED;

/* Defines for the 'command' field. */
#define X25_CONNECT_REQUEST 0x4401
Expand Down Expand Up @@ -92,34 +92,34 @@ struct cycx_x25_cmd {
* @flags - see dosx25.doc, in portuguese, for details
*/
struct cycx_x25_config {
u8 link PACKED;
u8 speed PACKED;
u8 clock PACKED;
u8 n2 PACKED;
u8 n2win PACKED;
u8 n3win PACKED;
u8 nvc PACKED;
u8 pktlen PACKED;
u8 locaddr PACKED;
u8 remaddr PACKED;
u16 t1 PACKED;
u16 t2 PACKED;
u8 t21 PACKED;
u8 npvc PACKED;
u8 t23 PACKED;
u8 flags PACKED;
};
u8 link;
u8 speed;
u8 clock;
u8 n2;
u8 n2win;
u8 n3win;
u8 nvc;
u8 pktlen;
u8 locaddr;
u8 remaddr;
u16 t1;
u16 t2;
u8 t21;
u8 npvc;
u8 t23;
u8 flags;
} PACKED;

struct cycx_x25_stats {
u16 rx_crc_errors PACKED;
u16 rx_over_errors PACKED;
u16 n2_tx_frames PACKED;
u16 n2_rx_frames PACKED;
u16 tx_timeouts PACKED;
u16 rx_timeouts PACKED;
u16 n3_tx_packets PACKED;
u16 n3_rx_packets PACKED;
u16 tx_aborts PACKED;
u16 rx_aborts PACKED;
};
u16 rx_crc_errors;
u16 rx_over_errors;
u16 n2_tx_frames;
u16 n2_rx_frames;
u16 tx_timeouts;
u16 rx_timeouts;
u16 n3_tx_packets;
u16 n3_rx_packets;
u16 tx_aborts;
u16 rx_aborts;
} PACKED;
#endif /* _CYCX_X25_H */
12 changes: 6 additions & 6 deletions trunk/include/linux/if_frad.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,17 @@ struct frad_conf
/* these are the fields of an RFC 1490 header */
struct frhdr
{
unsigned char control __attribute__((packed));
unsigned char control;

/* for IP packets, this can be the NLPID */
unsigned char pad __attribute__((packed));
unsigned char pad;

unsigned char NLPID __attribute__((packed));
unsigned char OUI[3] __attribute__((packed));
unsigned short PID __attribute__((packed));
unsigned char NLPID;
unsigned char OUI[3];
unsigned short PID;

#define IP_NLPID pad
};
} __attribute__((packed));

/* see RFC 1490 for the definition of the following */
#define FRAD_I_UI 0x03
Expand Down
70 changes: 35 additions & 35 deletions trunk/include/linux/isdnif.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,43 +282,43 @@ typedef struct setup_parm {

typedef struct T30_s {
/* session parameters */
__u8 resolution __attribute__ ((packed));
__u8 rate __attribute__ ((packed));
__u8 width __attribute__ ((packed));
__u8 length __attribute__ ((packed));
__u8 compression __attribute__ ((packed));
__u8 ecm __attribute__ ((packed));
__u8 binary __attribute__ ((packed));
__u8 scantime __attribute__ ((packed));
__u8 id[FAXIDLEN] __attribute__ ((packed));
__u8 resolution;
__u8 rate;
__u8 width;
__u8 length;
__u8 compression;
__u8 ecm;
__u8 binary;
__u8 scantime;
__u8 id[FAXIDLEN];
/* additional parameters */
__u8 phase __attribute__ ((packed));
__u8 direction __attribute__ ((packed));
__u8 code __attribute__ ((packed));
__u8 badlin __attribute__ ((packed));
__u8 badmul __attribute__ ((packed));
__u8 bor __attribute__ ((packed));
__u8 fet __attribute__ ((packed));
__u8 pollid[FAXIDLEN] __attribute__ ((packed));
__u8 cq __attribute__ ((packed));
__u8 cr __attribute__ ((packed));
__u8 ctcrty __attribute__ ((packed));
__u8 minsp __attribute__ ((packed));
__u8 phcto __attribute__ ((packed));
__u8 rel __attribute__ ((packed));
__u8 nbc __attribute__ ((packed));
__u8 phase;
__u8 direction;
__u8 code;
__u8 badlin;
__u8 badmul;
__u8 bor;
__u8 fet;
__u8 pollid[FAXIDLEN];
__u8 cq;
__u8 cr;
__u8 ctcrty;
__u8 minsp;
__u8 phcto;
__u8 rel;
__u8 nbc;
/* remote station parameters */
__u8 r_resolution __attribute__ ((packed));
__u8 r_rate __attribute__ ((packed));
__u8 r_width __attribute__ ((packed));
__u8 r_length __attribute__ ((packed));
__u8 r_compression __attribute__ ((packed));
__u8 r_ecm __attribute__ ((packed));
__u8 r_binary __attribute__ ((packed));
__u8 r_scantime __attribute__ ((packed));
__u8 r_id[FAXIDLEN] __attribute__ ((packed));
__u8 r_code __attribute__ ((packed));
} T30_s;
__u8 r_resolution;
__u8 r_rate;
__u8 r_width;
__u8 r_length;
__u8 r_compression;
__u8 r_ecm;
__u8 r_binary;
__u8 r_scantime;
__u8 r_id[FAXIDLEN];
__u8 r_code;
} __attribute__((packed)) T30_s;

#define ISDN_TTY_FAX_CONN_IN 0
#define ISDN_TTY_FAX_CONN_OUT 1
Expand Down
Loading

0 comments on commit 4a156c2

Please sign in to comment.