Commit d4536e93 authored by Len Brown's avatar Len Brown

Merge intel.com:/home/lenb/bk/linux-2.6.0

into intel.com:/home/lenb/bk/linux-acpi-test-2.6.0
parents bde5c490 da136c4d
...@@ -166,7 +166,6 @@ int module_probe_snum(module_t *m, nasid_t nasid) ...@@ -166,7 +166,6 @@ int module_probe_snum(module_t *m, nasid_t nasid)
{ {
lboard_t *board; lboard_t *board;
klmod_serial_num_t *comp; klmod_serial_num_t *comp;
char * bcopy(const char * src, char * dest, int count);
char serial_number[16]; char serial_number[16];
/* /*
...@@ -215,8 +214,8 @@ int module_probe_snum(module_t *m, nasid_t nasid) ...@@ -215,8 +214,8 @@ int module_probe_snum(module_t *m, nasid_t nasid)
#endif #endif
if (comp->snum.snum_str[0] != '\0') { if (comp->snum.snum_str[0] != '\0') {
bcopy(comp->snum.snum_str, memcpy(m->sys_snum,
m->sys_snum, comp->snum.snum_str,
MAX_SERIAL_NUM_SIZE); MAX_SERIAL_NUM_SIZE);
m->sys_snum_valid = 1; m->sys_snum_valid = 1;
} }
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include <asm/sn/io.h> #include <asm/sn/io.h>
#include <asm/sn/sn_private.h> #include <asm/sn/sn_private.h>
extern char *bcopy(const char * src, char * dest, int count);
#define PCI_BUS_NO_1 1 #define PCI_BUS_NO_1 1
...@@ -51,7 +49,7 @@ pic_bus1_inventory_dup(vertex_hdl_t conn_v, vertex_hdl_t peer_conn_v) ...@@ -51,7 +49,7 @@ pic_bus1_inventory_dup(vertex_hdl_t conn_v, vertex_hdl_t peer_conn_v)
(arbitrary_info_t *)&pinv) == GRAPH_SUCCESS) (arbitrary_info_t *)&pinv) == GRAPH_SUCCESS)
{ {
NEW(peer_pinv); NEW(peer_pinv);
bcopy((const char *)pinv, (char *)peer_pinv, sizeof(inventory_t)); memcpy(peer_pinv, pinv, sizeof(inventory_t));
if (hwgraph_info_add_LBL(peer_conn_v, INFO_LBL_INVENT, if (hwgraph_info_add_LBL(peer_conn_v, INFO_LBL_INVENT,
(arbitrary_info_t)peer_pinv) != GRAPH_SUCCESS) { (arbitrary_info_t)peer_pinv) != GRAPH_SUCCESS) {
DEL(peer_pinv); DEL(peer_pinv);
......
...@@ -636,9 +636,11 @@ static int cciss_ioctl(struct inode *inode, struct file *filep, ...@@ -636,9 +636,11 @@ static int cciss_ioctl(struct inode *inode, struct file *filep,
{ {
return -EINVAL; return -EINVAL;
} }
#if 0 /* 'buf_size' member is 16-bits, and always smaller than kmalloc limit */
/* Check kmalloc limits */ /* Check kmalloc limits */
if(iocommand.buf_size > 128000) if(iocommand.buf_size > 128000)
return -EINVAL; return -EINVAL;
#endif
if(iocommand.buf_size > 0) if(iocommand.buf_size > 0)
{ {
buff = kmalloc(iocommand.buf_size, GFP_KERNEL); buff = kmalloc(iocommand.buf_size, GFP_KERNEL);
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <linux/genhd.h> #include <linux/genhd.h>
#include <linux/ps2esdi.h> #include <linux/ps2esdi.h>
#include <linux/blkdev.h> #include <linux/blkdev.h>
#include <linux/mca.h> #include <linux/mca-legacy.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/module.h> #include <linux/module.h>
......
...@@ -91,9 +91,9 @@ static int amd64_insert_memory(struct agp_memory *mem, off_t pg_start, int type) ...@@ -91,9 +91,9 @@ static int amd64_insert_memory(struct agp_memory *mem, off_t pg_start, int type)
for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { for (i = 0, j = pg_start; i < mem->page_count; i++, j++) {
tmp = agp_bridge->driver->mask_memory(mem->memory[i], mem->type); tmp = agp_bridge->driver->mask_memory(mem->memory[i], mem->type);
BUG_ON(tmp & 0xffffff0000000ffc); BUG_ON(tmp & 0xffffff0000000ffcULL);
pte = (tmp & 0x000000ff00000000) >> 28; pte = (tmp & 0x000000ff00000000ULL) >> 28;
pte |=(tmp & 0x00000000fffff000); pte |=(tmp & 0x00000000fffff000ULL);
pte |= GPTE_VALID | GPTE_COHERENT; pte |= GPTE_VALID | GPTE_COHERENT;
agp_bridge->gatt_table[j] = pte; agp_bridge->gatt_table[j] = pte;
......
...@@ -304,22 +304,16 @@ int __init ide_probe_for_pdc4030(void) ...@@ -304,22 +304,16 @@ int __init ide_probe_for_pdc4030(void)
#ifndef MODULE #ifndef MODULE
if (enable_promise_support == 0) if (enable_promise_support == 0)
return; return 0;
#endif #endif
for (index = 0; index < MAX_HWIFS; index++) { for (index = 0; index < MAX_HWIFS; index++) {
hwif = &ide_hwifs[index]; hwif = &ide_hwifs[index];
if (hwif->chipset == ide_unknown && detect_pdc4030(hwif)) { if (hwif->chipset == ide_unknown && detect_pdc4030(hwif))
#ifndef MODULE
setup_pdc4030(hwif);
#else
return setup_pdc4030(hwif); return setup_pdc4030(hwif);
#endif
}
} }
#ifdef MODULE
return 0; return 0;
#endif
} }
static void __exit release_pdc4030(ide_hwif_t *hwif, ide_hwif_t *mate) static void __exit release_pdc4030(ide_hwif_t *hwif, ide_hwif_t *mate)
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/mca.h> #include <linux/mca-legacy.h>
#include <asm/io.h> #include <asm/io.h>
/* NOTE: This structure is stack allocated */ /* NOTE: This structure is stack allocated */
......
...@@ -120,12 +120,13 @@ static int mca_default_procfn(char* buf, struct mca_device *mca_dev) ...@@ -120,12 +120,13 @@ static int mca_default_procfn(char* buf, struct mca_device *mca_dev)
len += sprintf(buf+len, "Id: %02x%02x\n", len += sprintf(buf+len, "Id: %02x%02x\n",
mca_dev->pos[1], mca_dev->pos[0]); mca_dev->pos[1], mca_dev->pos[0]);
len += sprintf(buf+len, "Enabled: %s\nPOS: ", len += sprintf(buf+len, "Enabled: %s\nPOS: ",
mca_isenabled(slot) ? "Yes" : "No"); mca_device_status(mca_dev) == MCA_ADAPTER_NORMAL ?
"Yes" : "No");
for(i=0; i<8; i++) { for(i=0; i<8; i++) {
len += sprintf(buf+len, "%02x ", mca_dev->pos[i]); len += sprintf(buf+len, "%02x ", mca_dev->pos[i]);
} }
len += sprintf(buf+len, "\nDriver Installed: %s", len += sprintf(buf+len, "\nDriver Installed: %s",
mca_is_adapter_used(slot) ? "Yes" : "No"); mca_device_claimed(mca_dev) ? "Yes" : "No");
buf[len++] = '\n'; buf[len++] = '\n';
buf[len] = 0; buf[len] = 0;
...@@ -189,6 +190,7 @@ void __init mca_do_proc_init(void) ...@@ -189,6 +190,7 @@ void __init mca_do_proc_init(void)
/* Initialize /proc/mca entries for existing adapters */ /* Initialize /proc/mca entries for existing adapters */
for(i = 0; i < MCA_NUMADAPTERS; i++) { for(i = 0; i < MCA_NUMADAPTERS; i++) {
enum MCA_AdapterStatus status;
mca_dev = mca_find_device_by_slot(i); mca_dev = mca_find_device_by_slot(i);
if(!mca_dev) if(!mca_dev)
continue; continue;
...@@ -200,7 +202,10 @@ void __init mca_do_proc_init(void) ...@@ -200,7 +202,10 @@ void __init mca_do_proc_init(void)
else if(i == MCA_INTEGSCSI) sprintf(mca_dev->procname,"scsi"); else if(i == MCA_INTEGSCSI) sprintf(mca_dev->procname,"scsi");
else if(i == MCA_MOTHERBOARD) sprintf(mca_dev->procname,"planar"); else if(i == MCA_MOTHERBOARD) sprintf(mca_dev->procname,"planar");
if(!mca_isadapter(i)) continue; status = mca_device_status(mca_dev);
if (status != MCA_ADAPTER_NORMAL &&
status != MCA_ADAPTER_DISABLED)
continue;
node = create_proc_read_entry(mca_dev->procname, 0, proc_mca, node = create_proc_read_entry(mca_dev->procname, 0, proc_mca,
mca_read_proc, (void *)mca_dev); mca_read_proc, (void *)mca_dev);
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/mca.h> #include <linux/mca-legacy.h>
#include <linux/ethtool.h> #include <linux/ethtool.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
......
...@@ -92,7 +92,7 @@ DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE " Richard Proctor (rnp@netlink.co.nz ...@@ -92,7 +92,7 @@ DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE " Richard Proctor (rnp@netlink.co.nz
#include <linux/types.h> #include <linux/types.h>
#include <linux/fcntl.h> #include <linux/fcntl.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/mca.h> #include <linux/mca-legacy.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/in.h> #include <linux/in.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
......
...@@ -67,7 +67,6 @@ extern int elplus_probe(struct net_device *); ...@@ -67,7 +67,6 @@ extern int elplus_probe(struct net_device *);
extern int ac3200_probe(struct net_device *); extern int ac3200_probe(struct net_device *);
extern int es_probe(struct net_device *); extern int es_probe(struct net_device *);
extern int lne390_probe(struct net_device *); extern int lne390_probe(struct net_device *);
extern int ne3210_probe(struct net_device *);
extern int e2100_probe(struct net_device *); extern int e2100_probe(struct net_device *);
extern int ni5010_probe(struct net_device *); extern int ni5010_probe(struct net_device *);
extern int ni52_probe(struct net_device *); extern int ni52_probe(struct net_device *);
...@@ -154,9 +153,6 @@ static struct devprobe eisa_probes[] __initdata = { ...@@ -154,9 +153,6 @@ static struct devprobe eisa_probes[] __initdata = {
#endif #endif
#ifdef CONFIG_LNE390 #ifdef CONFIG_LNE390
{lne390_probe, 0}, {lne390_probe, 0},
#endif
#ifdef CONFIG_NE3210
{ne3210_probe, 0},
#endif #endif
{NULL, 0}, {NULL, 0},
}; };
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/mca.h> #include <linux/mca-legacy.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/types.h> #include <linux/types.h>
......
...@@ -113,7 +113,6 @@ ...@@ -113,7 +113,6 @@
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/mca.h>
#include <linux/mca-legacy.h> #include <linux/mca-legacy.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
......
...@@ -82,7 +82,7 @@ special acknowledgements to: ...@@ -82,7 +82,7 @@ special acknowledgements to:
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/mca.h> #include <linux/mca-legacy.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
......
...@@ -70,7 +70,7 @@ static const char *version = "ne2.c:v0.91 Nov 16 1998 Wim Dumon <wimpie@kotnet.o ...@@ -70,7 +70,7 @@ static const char *version = "ne2.c:v0.91 Nov 16 1998 Wim Dumon <wimpie@kotnet.o
#include <linux/string.h> #include <linux/string.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/mca.h> #include <linux/mca-legacy.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
......
This diff is collapsed.
...@@ -89,7 +89,7 @@ paper sources: ...@@ -89,7 +89,7 @@ paper sources:
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/mca.h> #include <linux/mca-legacy.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/version.h> #include <linux/version.h>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
static const char version[] = "madgemc.c: v0.91 23/01/2000 by Adam Fritzler\n"; static const char version[] = "madgemc.c: v0.91 23/01/2000 by Adam Fritzler\n";
#include <linux/module.h> #include <linux/module.h>
#include <linux/mca.h> #include <linux/mca-legacy.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/pci.h> #include <linux/pci.h>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/mca.h> #include <linux/mca-legacy.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
......
...@@ -721,9 +721,9 @@ static int arlan_hw_tx(struct net_device *dev, char *buf, int length) ...@@ -721,9 +721,9 @@ static int arlan_hw_tx(struct net_device *dev, char *buf, int length)
else else
{ {
netif_stop_queue (dev); netif_stop_queue (dev);
return -1;
IFDEBUG(ARLAN_DEBUG_TX_CHAIN) IFDEBUG(ARLAN_DEBUG_TX_CHAIN)
printk(KERN_ERR "TX TAIL & HEAD full, return, tailStart %d headEnd %d\n", tailStarts, headEnds); printk(KERN_ERR "TX TAIL & HEAD full, return, tailStart %d headEnd %d\n", tailStarts, headEnds);
return -1;
} }
priv->out_bytes += length; priv->out_bytes += length;
priv->out_bytes10 += length; priv->out_bytes10 += length;
...@@ -1881,6 +1881,8 @@ int __init arlan_probe(struct net_device *dev) ...@@ -1881,6 +1881,8 @@ int __init arlan_probe(struct net_device *dev)
#ifdef MODULE #ifdef MODULE
static int probe = probeUNKNOWN;
static int __init arlan_find_devices(void) static int __init arlan_find_devices(void)
{ {
int m; int m;
......
...@@ -7757,7 +7757,7 @@ static void ncr_init_ccb(ncb_p np, ccb_p cp) ...@@ -7757,7 +7757,7 @@ static void ncr_init_ccb(ncb_p np, ccb_p cp)
cp->start.schedule.l_cmd = cpu_to_scr(SCR_JUMP); cp->start.schedule.l_cmd = cpu_to_scr(SCR_JUMP);
cp->start.p_phys = cpu_to_scr(CCB_PHYS(cp, phys)); cp->start.p_phys = cpu_to_scr(CCB_PHYS(cp, phys));
bcopy(&cp->start, &cp->restart, sizeof(cp->restart)); memcpy(&cp->restart, &cp->start, sizeof(cp->restart));
cp->start.schedule.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, idle)); cp->start.schedule.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, idle));
cp->restart.schedule.l_paddr = cpu_to_scr(NCB_SCRIPTH_PHYS (np, abort)); cp->restart.schedule.l_paddr = cpu_to_scr(NCB_SCRIPTH_PHYS (np, abort));
......
...@@ -70,10 +70,6 @@ ...@@ -70,10 +70,6 @@
#include <scsi/scsi_host.h> #include <scsi/scsi_host.h>
#include "../scsi.h" /* XXX: DID_* */ #include "../scsi.h" /* XXX: DID_* */
#ifndef bcopy
#define bcopy(s, d, n) memcpy((d), (s), (n))
#endif
#ifndef bzero #ifndef bzero
#define bzero(d, n) memset((d), 0, (n)) #define bzero(d, n) memset((d), 0, (n))
#endif #endif
......
...@@ -5889,9 +5889,9 @@ int sym_hcb_attach(hcb_p np, struct sym_fw *fw) ...@@ -5889,9 +5889,9 @@ int sym_hcb_attach(hcb_p np, struct sym_fw *fw)
/* /*
* Copy scripts to controller instance. * Copy scripts to controller instance.
*/ */
bcopy(fw->a_base, np->scripta0, np->scripta_sz); memcpy(np->scripta0, fw->a_base, np->scripta_sz);
bcopy(fw->b_base, np->scriptb0, np->scriptb_sz); memcpy(np->scriptb0, fw->b_base, np->scriptb_sz);
bcopy(fw->z_base, np->scriptz0, np->scriptz_sz); memcpy(np->scriptz0, fw->z_base, np->scriptz_sz);
/* /*
* Setup variable parts in scripts and compute * Setup variable parts in scripts and compute
......
...@@ -225,7 +225,7 @@ void sym_announce_transfer_rate(hcb_p np, int target) ...@@ -225,7 +225,7 @@ void sym_announce_transfer_rate(hcb_p np, int target)
*/ */
void sym_update_trans_settings(hcb_p np, tcb_p tp) void sym_update_trans_settings(hcb_p np, tcb_p tp)
{ {
bcopy(&tp->tinfo.user, &tp->tinfo.goal, sizeof(tp->tinfo.goal)); memcpy(&tp->tinfo.goal, &tp->tinfo.user, sizeof(tp->tinfo.goal));
if (tp->inq_version >= 4) { if (tp->inq_version >= 4) {
switch(tp->inq_byte56 & INQ56_CLOCKING) { switch(tp->inq_byte56 & INQ56_CLOCKING) {
......
...@@ -88,10 +88,6 @@ ...@@ -88,10 +88,6 @@
#define u_int unsigned int #define u_int unsigned int
#define u_long unsigned long #define u_long unsigned long
#ifndef bcopy
#define bcopy(s, d, n) memcpy((d), (s), (n))
#endif
#ifndef bcmp #ifndef bcmp
#define bcmp(s, d, n) memcmp((d), (s), (n)) #define bcmp(s, d, n) memcmp((d), (s), (n))
#endif #endif
......
...@@ -838,7 +838,7 @@ int diWrite(tid_t tid, struct inode *ip) ...@@ -838,7 +838,7 @@ int diWrite(tid_t tid, struct inode *ip)
*/ */
if (S_ISDIR(ip->i_mode) if (S_ISDIR(ip->i_mode)
&& (ip->i_ipmnt->i_mntflag & JFS_DASD_ENABLED)) && (ip->i_ipmnt->i_mntflag & JFS_DASD_ENABLED))
bcopy(&ip->i_DASD, &dp->di_DASD, sizeof(struct dasd)); memcpy(&dp->di_DASD, &ip->i_DASD, sizeof(struct dasd));
#endif /* _JFS_FASTDASD */ #endif /* _JFS_FASTDASD */
/* release the buffer holding the updated on-disk inode. /* release the buffer holding the updated on-disk inode.
......
...@@ -359,11 +359,11 @@ static inline int hdlcdrv_ptt(struct hdlcdrv_state *s) ...@@ -359,11 +359,11 @@ static inline int hdlcdrv_ptt(struct hdlcdrv_state *s)
void hdlcdrv_receiver(struct net_device *, struct hdlcdrv_state *); void hdlcdrv_receiver(struct net_device *, struct hdlcdrv_state *);
void hdlcdrv_transmitter(struct net_device *, struct hdlcdrv_state *); void hdlcdrv_transmitter(struct net_device *, struct hdlcdrv_state *);
void hdlcdrv_arbitrate(struct net_device *, struct hdlcdrv_state *); void hdlcdrv_arbitrate(struct net_device *, struct hdlcdrv_state *);
int hdlcdrv_register_hdlcdrv(struct net_device *dev, const struct hdlcdrv_ops *ops, struct net_device *hdlcdrv_register(const struct hdlcdrv_ops *ops,
unsigned int privsize, char *ifname, unsigned int privsize, const char *ifname,
unsigned int baseaddr, unsigned int irq, unsigned int baseaddr, unsigned int irq,
unsigned int dma); unsigned int dma);
int hdlcdrv_unregister_hdlcdrv(struct net_device *dev); void hdlcdrv_unregister(struct net_device *dev);
/* -------------------------------------------------------------------- */ /* -------------------------------------------------------------------- */
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef _LINUX_MCA_LEGACY_H #ifndef _LINUX_MCA_LEGACY_H
#define _LINUX_MCA_LEGACY_H #define _LINUX_MCA_LEGACY_H
#include <linux/mca.h>
#warning "MCA legacy - please move your driver to the new sysfs api" #warning "MCA legacy - please move your driver to the new sysfs api"
/* MCA_NOTFOUND is an error condition. The other two indicate /* MCA_NOTFOUND is an error condition. The other two indicate
......
...@@ -136,10 +136,6 @@ extern void mca_unregister_driver(struct mca_driver *drv); ...@@ -136,10 +136,6 @@ extern void mca_unregister_driver(struct mca_driver *drv);
/* WARNING: only called by the boot time device setup */ /* WARNING: only called by the boot time device setup */
extern int mca_register_device(int bus, struct mca_device *mca_dev); extern int mca_register_device(int bus, struct mca_device *mca_dev);
#ifdef CONFIG_MCA_LEGACY
#include <linux/mca-legacy.h>
#endif
#ifdef CONFIG_MCA_PROC_FS #ifdef CONFIG_MCA_PROC_FS
extern void mca_do_proc_init(void); extern void mca_do_proc_init(void);
extern void mca_set_adapter_procfn(int slot, MCA_ProcFn, void* dev); extern void mca_set_adapter_procfn(int slot, MCA_ProcFn, void* dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment