mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
Merge ../linux-2.6
This commit is contained in:
commit
de2d3dbd17
241 changed files with 4333 additions and 1377 deletions
|
|
@ -118,8 +118,7 @@ extern void release_lapic_nmi(void);
|
|||
extern void disable_timer_nmi_watchdog(void);
|
||||
extern void enable_timer_nmi_watchdog(void);
|
||||
extern void nmi_watchdog_tick (struct pt_regs * regs);
|
||||
extern int APIC_init(void);
|
||||
extern void APIC_late_time_init(void);
|
||||
extern int APIC_init_uniprocessor (void);
|
||||
extern void disable_APIC_timer(void);
|
||||
extern void enable_APIC_timer(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@ void init_8259A(int aeoi);
|
|||
void FASTCALL(send_IPI_self(int vector));
|
||||
void init_VISWS_APIC_irqs(void);
|
||||
void setup_IO_APIC(void);
|
||||
void IO_APIC_late_time_init(void);
|
||||
void disable_IO_APIC(void);
|
||||
void print_IO_APIC(void);
|
||||
int IO_APIC_get_PCI_irq_vector(int bus, int slot, int fn);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
/* two abstractions specific to kernel/smpboot.c, mainly to cater to visws
|
||||
* which needs to alter them. */
|
||||
|
||||
static inline void smpboot_clear_io_apic_irqs(void)
|
||||
{
|
||||
io_apic_irqs = 0;
|
||||
}
|
||||
|
||||
static inline void smpboot_setup_warm_reset_vector(unsigned long start_eip)
|
||||
{
|
||||
CMOS_WRITE(0xa, 0xf);
|
||||
|
|
@ -27,3 +32,13 @@ static inline void smpboot_restore_warm_reset_vector(void)
|
|||
|
||||
*((volatile long *) phys_to_virt(0x467)) = 0;
|
||||
}
|
||||
|
||||
static inline void smpboot_setup_io_apic(void)
|
||||
{
|
||||
/*
|
||||
* Here we can be sure that there is an IO-APIC in the system. Let's
|
||||
* go and set it up:
|
||||
*/
|
||||
if (!skip_ioapic_setup && nr_ioapics)
|
||||
setup_IO_APIC();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,14 @@ static inline void smpboot_setup_warm_reset_vector(unsigned long start_eip)
|
|||
|
||||
/* for visws do nothing for any of these */
|
||||
|
||||
static inline void smpboot_clear_io_apic_irqs(void)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void smpboot_restore_warm_reset_vector(void)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void smpboot_setup_io_apic(void)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#define __ASM_PPC_SYS_H
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#if defined(CONFIG_8260)
|
||||
|
|
|
|||
|
|
@ -396,32 +396,6 @@ extern struct device * get_device(struct device * dev);
|
|||
extern void put_device(struct device * dev);
|
||||
|
||||
|
||||
/* drivers/base/platform.c */
|
||||
|
||||
struct platform_device {
|
||||
const char * name;
|
||||
u32 id;
|
||||
struct device dev;
|
||||
u32 num_resources;
|
||||
struct resource * resource;
|
||||
};
|
||||
|
||||
#define to_platform_device(x) container_of((x), struct platform_device, dev)
|
||||
|
||||
extern int platform_device_register(struct platform_device *);
|
||||
extern void platform_device_unregister(struct platform_device *);
|
||||
|
||||
extern struct bus_type platform_bus_type;
|
||||
extern struct device platform_bus;
|
||||
|
||||
extern struct resource *platform_get_resource(struct platform_device *, unsigned int, unsigned int);
|
||||
extern int platform_get_irq(struct platform_device *, unsigned int);
|
||||
extern struct resource *platform_get_resource_byname(struct platform_device *, unsigned int, char *);
|
||||
extern int platform_get_irq_byname(struct platform_device *, char *);
|
||||
extern int platform_add_devices(struct platform_device **, int);
|
||||
|
||||
extern struct platform_device *platform_device_register_simple(char *, unsigned int, struct resource *, unsigned int);
|
||||
|
||||
/* drivers/base/power.c */
|
||||
extern void device_shutdown(void);
|
||||
|
||||
|
|
|
|||
40
include/linux/platform_device.h
Normal file
40
include/linux/platform_device.h
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* platform_device.h - generic, centralized driver model
|
||||
*
|
||||
* Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org>
|
||||
*
|
||||
* This file is released under the GPLv2
|
||||
*
|
||||
* See Documentation/driver-model/ for more information.
|
||||
*/
|
||||
|
||||
#ifndef _PLATFORM_DEVICE_H_
|
||||
#define _PLATFORM_DEVICE_H_
|
||||
|
||||
#include <linux/device.h>
|
||||
|
||||
struct platform_device {
|
||||
const char * name;
|
||||
u32 id;
|
||||
struct device dev;
|
||||
u32 num_resources;
|
||||
struct resource * resource;
|
||||
};
|
||||
|
||||
#define to_platform_device(x) container_of((x), struct platform_device, dev)
|
||||
|
||||
extern int platform_device_register(struct platform_device *);
|
||||
extern void platform_device_unregister(struct platform_device *);
|
||||
|
||||
extern struct bus_type platform_bus_type;
|
||||
extern struct device platform_bus;
|
||||
|
||||
extern struct resource *platform_get_resource(struct platform_device *, unsigned int, unsigned int);
|
||||
extern int platform_get_irq(struct platform_device *, unsigned int);
|
||||
extern struct resource *platform_get_resource_byname(struct platform_device *, unsigned int, char *);
|
||||
extern int platform_get_irq_byname(struct platform_device *, char *);
|
||||
extern int platform_add_devices(struct platform_device **, int);
|
||||
|
||||
extern struct platform_device *platform_device_register_simple(char *, unsigned int, struct resource *, unsigned int);
|
||||
|
||||
#endif /* _PLATFORM_DEVICE_H_ */
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
#define _LINUX_SERIAL_8250_H
|
||||
|
||||
#include <linux/serial_core.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/platform_device.h>
|
||||
|
||||
/*
|
||||
* This is the platform device platform_data structure
|
||||
|
|
|
|||
|
|
@ -1055,6 +1055,7 @@ typedef struct {
|
|||
unsigned char emu10k2_chip; /* Audigy 1 or Audigy 2. */
|
||||
unsigned char ca0102_chip; /* Audigy 1 or Audigy 2. Not SB Audigy 2 Value. */
|
||||
unsigned char ca0108_chip; /* Audigy 2 Value */
|
||||
unsigned char ca_cardbus_chip; /* Audigy 2 ZS Notebook */
|
||||
unsigned char ca0151_chip; /* P16V */
|
||||
unsigned char spk71; /* Has 7.1 speakers */
|
||||
unsigned char sblive51; /* SBLive! 5.1 - extout 0x11 -> center, 0x12 -> lfe */
|
||||
|
|
|
|||
Loading…
Reference in a new issue