/shark/trunk/drivers/linuxcom/include/linux/netdevice.h |
---|
9,7 → 9,10 |
#include <linux/skbuff.h> |
#include <linux/notifier.h> |
#include <time.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
// for 3c59x.c (!!!) |
#define le32_to_cpu(val) (val) |
#define cpu_to_le32(val) (val) |
258,6 → 261,7 |
void netif_rx(struct sk_buff *skb); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/stddef.h |
---|
1,6 → 1,10 |
#ifndef _LINUX_STDDEF_H |
#define _LINUX_STDDEF_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifndef _SIZE_T |
#define _SIZE_T |
typedef unsigned int size_t; |
12,4 → 16,6 |
#undef offsetof |
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/notifier.h |
---|
2,7 → 2,10 |
#define __NOTIFIER__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
struct notifier_block |
{ |
int (*notifier_call)(struct notifier_block *this, unsigned long, void *); |
10,4 → 13,6 |
int priority; |
}; |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/kernel.h |
---|
2,7 → 2,10 |
#define __KERNEL__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Optimization barrier */ |
#define barrier() __asm__("": : :"memory") |
14,4 → 17,6 |
#define KERN_NOTICE "<5>" /* normal but significant condition */ |
#define KERN_INFO "<6>" /* informational */ |
#define KERN_DEBUG "<7>" /* debug-level messages */ |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/etherdevice.h |
---|
5,7 → 5,10 |
#include <linux/if_ether.h> |
#include <linux/socket.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define eth_header panic_stub |
#if 0 |
extern int eth_header(struct sk_buff *skb, struct device *dev, |
27,4 → 30,5 |
unsigned char *src, int length, int base); |
extern struct device * init_etherdev(struct device *, int); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/interrupt.h |
---|
2,7 → 2,10 |
#define __INTERRUPT__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define NR_IRQS 128 |
int request_irq(unsigned int irq, void (*handler)(int, void *dev_id, struct pt_regs *), unsigned long flags, const char *device, void *dev_id); |
13,4 → 16,5 |
void free_irq(unsigned int irq, void *d); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/compatib.h |
---|
1,5 → 1,8 |
#include <kernel/kern.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifndef __UNIXCOMP__ |
#define __UNIXCOMP__ |
134,4 → 137,5 |
/* *** from linux-2.2.17/include/linux/byteorder/generic.h */ |
#define le16_to_cpu __le16_to_cpu |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/timer.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: timer.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: timer.h,v 1.2 2003-03-13 13:48:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:48:05 $ |
------------ |
**/ |
51,7 → 51,10 |
#include <kernel/kern.h> |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* This is completely separate from the above, and is the |
* "new and improved" way of handling timers more dynamically. |
83,5 → 86,5 |
int add_timer(struct timer_list *timer); |
void del_timer(struct timer_list *timer); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/skbuff.h |
---|
2,7 → 2,10 |
#define __SKBUFF__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define HAVE_ALLOC_SKB /* For the drivers to know */ |
#define HAVE_ALIGNABLE_SKB /* Ditto 8) */ |
128,5 → 131,5 |
extern void skb_queue_head_init(struct sk_buff_head *list); |
extern struct sk_buff * skb_clone(struct sk_buff *skb, int priority); |
extern void skb_reserve(struct sk_buff *skb, int len); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/socket.h |
---|
1,6 → 1,10 |
#ifndef _LINUX_SOCKET_H |
#define _LINUX_SOCKET_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
struct sockaddr |
{ |
unsigned short sa_family; /* address family, AF_xxx */ |
135,4 → 139,6 |
extern int move_addr_to_user(void *kaddr, int klen, void *uaddr, int *ulen); |
extern int move_addr_to_kernel(void *uaddr, int ulen, void *kaddr); |
#endif |
__END_DECLS |
#endif /* _LINUX_SOCKET_H */ |