summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2003-04-28 20:30:20 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2003-04-28 20:30:20 -0700
commit3f66d6ac8d846e98f9192ed27d2af9074292717c (patch)
treeb136731a141a716ceddfbc358e9d7c6748b75164 /include/linux
parent0fcdd5d321e309e916d0d471a3493e394fc43a8e (diff)
parent06657d1119fb8669fbd13ed5d35b94c74d596d40 (diff)
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/class-2.5
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/devfs_fs_kernel.h2
-rw-r--r--include/linux/eisa.h6
-rw-r--r--include/linux/if_pppox.h14
-rw-r--r--include/linux/list.h10
4 files changed, 26 insertions, 6 deletions
diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h
index c0bc8f221053..8ee76799308c 100644
--- a/include/linux/devfs_fs_kernel.h
+++ b/include/linux/devfs_fs_kernel.h
@@ -62,7 +62,7 @@ static inline int devfs_mk_dir(const char *fmt, ...)
static inline void devfs_remove(const char *fmt, ...)
{
}
-static inline int devfs_register_tape (devfs_handle_t de)
+static inline int devfs_register_tape (const char *name)
{
return -1;
}
diff --git a/include/linux/eisa.h b/include/linux/eisa.h
index 27bf30e7699e..d77fdf0f9f01 100644
--- a/include/linux/eisa.h
+++ b/include/linux/eisa.h
@@ -25,13 +25,15 @@ struct eisa_device_id {
};
/* There is not much we can say about an EISA device, apart from
- * signature, slot number, and base address. */
+ * signature, slot number, and base address. dma_mask is set by
+ * default to 32 bits.*/
struct eisa_device {
struct eisa_device_id id;
int slot;
unsigned long base_addr;
struct resource res;
+ u64 dma_mask;
struct device dev; /* generic device */
};
@@ -63,12 +65,12 @@ static inline void eisa_set_drvdata (struct eisa_device *edev, void *data)
* busses (PA-RISC ?), so we try to handle that. */
struct eisa_root_device {
- struct list_head node;
struct device *dev; /* Pointer to bridge device */
struct resource *res;
unsigned long bus_base_addr;
int slots; /* Max slot number */
int bus_nr; /* Set by eisa_root_register */
+ struct resource eisa_root_res; /* ditto */
};
int eisa_root_register (struct eisa_root_device *root);
diff --git a/include/linux/if_pppox.h b/include/linux/if_pppox.h
index 948826892b82..117357b14483 100644
--- a/include/linux/if_pppox.h
+++ b/include/linux/if_pppox.h
@@ -134,10 +134,15 @@ struct pppox_opt {
#define pppox_sk(__sk) ((struct pppox_opt *)(__sk)->protinfo)
+struct module;
+
struct pppox_proto {
- int (*create)(struct socket *sock);
- int (*ioctl)(struct socket *sock, unsigned int cmd,
- unsigned long arg);
+ int (*create)(struct socket *sock);
+ int (*ioctl)(struct socket *sock, unsigned int cmd,
+ unsigned long arg);
+ int (*release)(struct socket *sock);
+ void (*sk_free)(struct sock *sk);
+ struct module *owner;
};
extern int register_pppox_proto(int proto_num, struct pppox_proto *pp);
@@ -145,6 +150,9 @@ extern void unregister_pppox_proto(int proto_num);
extern void pppox_unbind_sock(struct sock *sk);/* delete ppp-channel binding */
extern int pppox_channel_ioctl(struct ppp_channel *pc, unsigned int cmd,
unsigned long arg);
+extern struct sock *pppox_sk_alloc(struct socket *sock, int protocol,
+ int priority, int zero_it,
+ kmem_cache_t *slab);
/* PPPoX socket states */
enum {
diff --git a/include/linux/list.h b/include/linux/list.h
index 9b8485930659..a724f9bcbe4d 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -335,6 +335,16 @@ static inline void list_splice_init(struct list_head *list,
prefetch(pos->member.next))
+/**
+ * list_for_each_continue_rcu - iterate over an rcu-protected list
+ * continuing from existing point.
+ * @pos: the &struct list_head to use as a loop counter.
+ * @head: the head for your list.
+ */
+#define list_for_each_continue_rcu(pos, head) \
+ for ((pos) = (pos)->next, prefetch((pos)->next); (pos) != (head); \
+ (pos) = (pos)->next, ({ smp_read_barrier_depends(); 0;}), prefetch((pos)->next))
+
/*
* Double linked lists with a single pointer list head.
* Mostly useful for hash tables where the two pointer list head is