diff options
| author | James Simmons <jsimmons@kozmo.(none)> | 2003-04-05 00:41:35 -0800 |
|---|---|---|
| committer | James Simmons <jsimmons@kozmo.(none)> | 2003-04-05 00:41:35 -0800 |
| commit | a92f10301ee7b59b01c1dc63c6957ec242aa21aa (patch) | |
| tree | 3e53399bdd58fe9306ca0dd79074a095825ee24e /include/linux | |
| parent | 87454c4a42191065c2333e57d37861de4ff10371 (diff) | |
| parent | 2ba74897b71877e63d8cffb12d3c855e3c995e9a (diff) | |
Merge
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/oprofile.h | 5 | ||||
| -rw-r--r-- | include/linux/pnp.h | 7 | ||||
| -rw-r--r-- | include/linux/pnpbios.h | 11 | ||||
| -rw-r--r-- | include/linux/sched.h | 6 |
4 files changed, 25 insertions, 4 deletions
diff --git a/include/linux/oprofile.h b/include/linux/oprofile.h index 5d906c21103f..6dba9058bca0 100644 --- a/include/linux/oprofile.h +++ b/include/linux/oprofile.h @@ -46,6 +46,11 @@ struct oprofile_operations { int oprofile_arch_init(struct oprofile_operations ** ops); /** + * One-time exit/cleanup for the arch. + */ +void oprofile_arch_exit(void); + +/** * Add a sample. This may be called from any context. Pass * smp_processor_id() as cpu. */ diff --git a/include/linux/pnp.h b/include/linux/pnp.h index 2f078ae0f3bb..73d74d0e52a7 100644 --- a/include/linux/pnp.h +++ b/include/linux/pnp.h @@ -295,7 +295,7 @@ struct pnp_device_id { unsigned long driver_data; /* data private to the driver */ }; -struct pnp_card_id { +struct pnp_card_device_id { char id[PNP_ID_LEN]; unsigned long driver_data; /* data private to the driver */ struct { @@ -315,10 +315,11 @@ struct pnp_driver { #define to_pnp_driver(drv) container_of(drv, struct pnp_driver, driver) struct pnp_card_driver { + struct list_head global_list; char * name; - const struct pnp_card_id *id_table; + const struct pnp_card_device_id *id_table; unsigned int flags; - int (*probe) (struct pnp_card_link *card, const struct pnp_card_id *card_id); + int (*probe) (struct pnp_card_link *card, const struct pnp_card_device_id *card_id); void (*remove) (struct pnp_card_link *card); struct pnp_driver link; }; diff --git a/include/linux/pnpbios.h b/include/linux/pnpbios.h index 1c1ec9c55d78..39d86068141f 100644 --- a/include/linux/pnpbios.h +++ b/include/linux/pnpbios.h @@ -29,7 +29,7 @@ #include <linux/pci.h> /* - * Status codes (warnings and errors) + * Return codes */ #define PNP_SUCCESS 0x00 #define PNP_NOT_SET_STATICALLY 0x7f @@ -75,6 +75,7 @@ #define PNPMSG_POWER_OFF 0x41 #define PNPMSG_PNP_OS_ACTIVE 0x42 #define PNPMSG_PNP_OS_INACTIVE 0x43 + /* * Plug and Play BIOS flags */ @@ -88,6 +89,12 @@ #define pnpbios_is_static(x) (((x)->flags & 0x0100) == 0x0000) #define pnpbios_is_dynamic(x) ((x)->flags & 0x0080) +/* + * Function Parameters + */ +#define PNPMODE_STATIC 1 +#define PNPMODE_DYNAMIC 0 + /* 0x8000 through 0xffff are OEM defined */ #pragma pack(1) @@ -125,8 +132,10 @@ struct pnp_bios_node { /* non-exported */ extern int pnpbios_dont_use_current_config; +extern struct pnp_dev_node_info node_info; extern void *pnpbios_kmalloc(size_t size, int f); extern int pnpbios_init (void); +extern int pnpbios_interface_attach_device(struct pnp_bios_node * node); extern int pnpbios_proc_init (void); extern void pnpbios_proc_exit (void); diff --git a/include/linux/sched.h b/include/linux/sched.h index d001088e58b3..f3b4c5891898 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -541,6 +541,7 @@ extern void block_all_signals(int (*notifier)(void *priv), void *priv, extern void unblock_all_signals(void); extern void release_task(struct task_struct * p); extern int send_sig_info(int, struct siginfo *, struct task_struct *); +extern int send_group_sig_info(int, struct siginfo *, struct task_struct *); extern int force_sig_info(int, struct siginfo *, struct task_struct *); extern int __kill_pg_info(int sig, struct siginfo *info, pid_t pgrp); extern int kill_pg_info(int, struct siginfo *, pid_t); @@ -558,6 +559,11 @@ extern int kill_proc(pid_t, int, int); extern int do_sigaction(int, const struct k_sigaction *, struct k_sigaction *); extern int do_sigaltstack(const stack_t *, stack_t *, unsigned long); +/* These can be the second arg to send_sig_info/send_group_sig_info. */ +#define SEND_SIG_NOINFO ((struct siginfo *) 0) +#define SEND_SIG_PRIV ((struct siginfo *) 1) +#define SEND_SIG_FORCED ((struct siginfo *) 2) + /* True if we are on the alternate signal stack. */ static inline int on_sig_stack(unsigned long sp) |
