core_initcall(cpufreq_time_setup);
#endif
-#if CONFIG_CPU_FREQ
+#ifdef CONFIG_CPU_FREQ
static int time_cpufreq_notifier(struct notifier_block *nb, unsigned long val,
void *data)
{
*/
DEFINE_SPINLOCK(pci_config_lock);
+/*
+ * Legacy PCI Config read and write routines for buses that can't use
+ * MMCONFIG accesses in systems where MMCONFIG is the default PCI config
+ * access mechanism.
+ */
+struct pci_raw_ops *pci_legacy_conf;
+
+static int pci_ops_legacy_read(struct pci_bus *bus, unsigned int devfn,
+ int where, int size, u32 *value)
+{
+ return pci_legacy_conf->read(0, bus->number, devfn, where,
+ size, value);
+}
+
+static int pci_ops_legacy_write(struct pci_bus *bus, unsigned int devfn,
+ int where, int size, u32 value)
+{
+ return pci_legacy_conf->write(0, bus->number, devfn, where,
+ size, value);
+}
+
+static struct pci_ops pci_legacy_ops = {
+ .read = pci_ops_legacy_read,
+ .write = pci_ops_legacy_write,
+};
+
/*
* Several buggy motherboards address only 16 devices and mirror
* them to next 16 IDs. We try to detect this `feature' on all
.write = pci_conf2_write,
};
-/*
- * Legacy PCI Config read and write routines for buses that can't use
- * MMCONFIG accesses in systems where MMCONFIG is the default PCI config
- * access mechanism.
- */
-static struct pci_raw_ops *pci_legacy_conf;
-
-static int pci_ops_legacy_read(struct pci_bus *bus, unsigned int devfn,
- int where, int size, u32 *value)
-{
- return pci_legacy_conf->read(0, bus->number, devfn, where,
- size, value);
-}
-
-static int pci_ops_legacy_write(struct pci_bus *bus, unsigned int devfn,
- int where, int size, u32 value)
-{
- return pci_legacy_conf->write(0, bus->number, devfn, where,
- size, value);
-}
-
-struct pci_ops pci_legacy_ops = {
- .read = pci_ops_legacy_read,
- .write = pci_ops_legacy_write,
-};
-
/*
* Before we decide to use direct hardware access mechanisms, we try to do some
* trivial checks to ensure it at least _seems_ to be working -- we just test
pci_dmi_bf,
};
-extern struct pci_ops pci_legacy_ops; /* direct.c */
-
+extern struct pci_raw_ops *pci_legacy_conf; /* common.c */
/* pci-i386.c */
extern unsigned int pcibios_max_latency;
* GNU General Public License for more details.
*/
+#include <linux/sched.h>
#include <linux/bootmem.h>
#include <linux/blkdev.h>
#include <linux/ctype.h>
* DGRS include files
*/
typedef unsigned char uchar;
-typedef unsigned int bool;
+//typedef unsigned int bool;
#define vol volatile
#include "dgrs.h"
#endif
#define PARAM_SIZE 4096
-#define COMMAND_LINE_SIZE 256
+#define COMMAND_LINE_SIZE 2048
#define OLD_CL_MAGIC_ADDR 0x90020
#define OLD_CL_MAGIC 0xA33F
#ifndef __ASSEMBLY__
#include <linux/types.h>
#include <linux/auxvec.h>
+#include <linux/fs.h>
+
#include <asm/elf.h>
#ifndef elf_read_implies_exec
extern int sysctl_icmp_ratelimit;
extern int sysctl_icmp_ratemask;
-extern void xfrm4_decode_session_reverse(struct sk_buff *skb, struct flowi *fl);
+#ifdef CONFIG_XFRM
extern int xfrm4_icmp_check(struct sk_buff *skb);
+#else
+static inline int xfrm4_icmp_check(struct sk_buff *skb) { return 1; }
+#endif
#endif /* _ICMP_H */
#else
#define xfrm_audit_log(a,s,t,r,p,x) do { ; } while (0)
#define xfrm_audit_state_replay_overflow(x, s) do { ; } while (0)
-#define xfrm_audit_state_replay(s, f, sp, sq) do { ; } while (0)
-#define xfrm_naudit_state_replay(s, f, sp, sq) do { ; } while (0)
+#define xfrm_audit_state_replay(s, sp, sq) do { ; } while (0)
+#define xfrm_naudit_state_replay(s, sp, sq) do { ; } while (0)
#define xfrm_audit_state_notfound(s, f, sp, sq) do { ; } while (0)
#define xfrm_naudit_state_notfound(s, f, sp, sq) do { ; } while (0)
#define xfrm_audit_state_icvfail(x, s, p) do { ; } while (0)
{
return 1;
}
-static inline int xfrm4_decode_session_reverse(struct sk_buff *skb,
- struct flowi *fl)
-{
- return -ENOSYS;
-}
-static inline int xfrm6_decode_session_reverse(struct sk_buff *skb,
- struct flowi *fl)
-{
- return -ENOSYS;
-}
+static inline void xfrm4_decode_session_reverse(struct sk_buff *skb,
+ struct flowi *fl) { }
+static inline void xfrm6_decode_session_reverse(struct sk_buff *skb,
+ struct flowi *fl) { }
static inline int xfrm4_policy_check_reverse(struct sock *sk, int dir,
struct sk_buff *skb)
{
static DEFINE_MUTEX(module_mutex);
static LIST_HEAD(modules);
+/* Waiting for a module to finish initializing? */
+static DECLARE_WAIT_QUEUE_HEAD(module_wq);
+
static BLOCKING_NOTIFIER_HEAD(module_notify_list);
int register_module_notifier(struct notifier_block * nb)
return 0;
}
-/* Waiting for a module to finish initializing? */
-static DECLARE_WAIT_QUEUE_HEAD(module_wq);
-
/* Module a uses b */
static int use_module(struct module *a, struct module *b)
{
mod = (void *)sechdrs[modindex].sh_addr;
mod->gpgsig_ok = gpgsig_ok;
-#if CONFIG_MODULE_SIG
+#ifdef CONFIG_MODULE_SIG
if (!mod->gpgsig_ok)
add_taint_module(mod, TAINT_UNSIGNED_MODULE);
#endif
buf[bx++] = 'P';
if (taints & TAINT_FORCED_MODULE)
buf[bx++] = 'F';
-#if CONFIG_MODULE_SIG
+#ifdef CONFIG_MODULE_SIG
if (taints & TAINT_UNSIGNED_MODULE)
buf[bx++] = 'U';
#endif
#include <asm/system.h>
#include <asm/uaccess.h>
#include <net/checksum.h>
-#include <linux/xfrm.h>
+#include <net/xfrm.h>
/*
* Build xmit assembly blocks
#include <asm/system.h>
#include <asm/uaccess.h>
#include <asm/ioctls.h>
+#include <linux/sched.h>
#include <linux/bootmem.h>
#include <linux/types.h>
#include <linux/fcntl.h>