summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2002-12-02 01:02:58 -0600
committerPatrick Mochel <mochel@osdl.org>2002-12-02 01:02:58 -0600
commit6a3b0825ee538bd3a81f5d9d874801c21a08ef12 (patch)
tree1501e5fcf33c84ff00721e361f41d50c0bb13c74 /include/linux
parent659c204070e5d33cbe12dfc580ec8f53b66d2618 (diff)
parent2aceefe4f67ce4df5a23ccdba8c6b2db79226bb8 (diff)
Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/completion.h1
-rw-r--r--include/linux/pci.h9
-rw-r--r--include/linux/pci_ids.h1
-rw-r--r--include/linux/sched.h7
-rw-r--r--include/linux/sonypi.h3
5 files changed, 11 insertions, 10 deletions
diff --git a/include/linux/completion.h b/include/linux/completion.h
index e4d6817775be..b8d7ed948470 100644
--- a/include/linux/completion.h
+++ b/include/linux/completion.h
@@ -29,6 +29,7 @@ static inline void init_completion(struct completion *x)
extern void FASTCALL(wait_for_completion(struct completion *));
extern void FASTCALL(complete(struct completion *));
+extern void FASTCALL(complete_all(struct completion *));
#define INIT_COMPLETION(x) ((x).done = 0)
diff --git a/include/linux/pci.h b/include/linux/pci.h
index eede29dc50ad..557b17d959c1 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -383,7 +383,6 @@ struct pci_dev {
u8 rom_base_reg; /* which config register controls the ROM */
struct pci_driver *driver; /* which driver has allocated this device */
- void *driver_data; /* data private to the driver */
u64 dma_mask; /* Mask of the bits of bus address this
device implements. Normally this is
0xffffffff. You only need to change
@@ -787,17 +786,17 @@ static inline int pci_module_init(struct pci_driver *drv)
pci_resource_start((dev),(bar)) + 1))
/* Similar to the helpers above, these manipulate per-pci_dev
- * driver-specific data. Currently stored as pci_dev::driver_data,
- * a void pointer, but it is not present on older kernels.
+ * driver-specific data. They are really just a wrapper around
+ * the generic device structure functions of these calls.
*/
static inline void *pci_get_drvdata (struct pci_dev *pdev)
{
- return pdev->driver_data;
+ return dev_get_drvdata(&pdev->dev);
}
static inline void pci_set_drvdata (struct pci_dev *pdev, void *data)
{
- pdev->driver_data = data;
+ dev_set_drvdata(&pdev->dev, data);
}
/*
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index 645f8e78d1d6..9f0ec735c051 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -1603,6 +1603,7 @@
#define PCI_DEVICE_ID_TIGON3_5702FE 0x164d
#define PCI_DEVICE_ID_TIGON3_5702X 0x16a6
#define PCI_DEVICE_ID_TIGON3_5703X 0x16a7
+#define PCI_DEVICE_ID_BCM4401 0x4401
#define PCI_VENDOR_ID_SYBA 0x1592
#define PCI_DEVICE_ID_SYBA_2P_EPP 0x0782
diff --git a/include/linux/sched.h b/include/linux/sched.h
index f919a8ce52cb..80a9836df919 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -203,9 +203,8 @@ struct mm_struct {
mm_context_t context;
/* coredumping support */
- struct semaphore core_sem;
- atomic_t core_waiters;
- wait_queue_head_t core_wait;
+ int core_waiters;
+ struct completion *core_startup_done, core_done;
/* aio bits */
rwlock_t ioctx_list_lock;
@@ -397,8 +396,6 @@ struct task_struct {
void *journal_info;
struct dentry *proc_dentry;
struct backing_dev_info *backing_dev_info;
-/* threaded coredumping support */
- int core_waiter;
unsigned long ptrace_message;
};
diff --git a/include/linux/sonypi.h b/include/linux/sonypi.h
index 7581d3fd846d..89ead755abfe 100644
--- a/include/linux/sonypi.h
+++ b/include/linux/sonypi.h
@@ -91,6 +91,9 @@
#define SONYPI_EVENT_THUMBPHRASE_PRESSED 51
#define SONYPI_EVENT_MEYE_FACE 52
#define SONYPI_EVENT_MEYE_OPPOSITE 53
+#define SONYPI_EVENT_MEMORYSTICK_INSERT 54
+#define SONYPI_EVENT_MEMORYSTICK_EJECT 55
+
/* get/set brightness */
#define SONYPI_IOCGBRT _IOR('v', 0, __u8)