patch-2.3.35 linux/include/asm-sparc/floppy.h
Next file: linux/include/asm-sparc/head.h
Previous file: linux/include/asm-sparc/ebus.h
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Mon Dec 20 22:05:52 1999
- Orig file:
v2.3.34/linux/include/asm-sparc/floppy.h
- Orig date:
Thu Apr 22 19:24:51 1999
diff -u --recursive --new-file v2.3.34/linux/include/asm-sparc/floppy.h linux/include/asm-sparc/floppy.h
@@ -286,6 +286,7 @@
{
char state[128];
int tnode, fd_node, num_regs;
+ struct resource r;
use_virtual_dma = 1;
@@ -322,12 +323,11 @@
num_regs = prom_getproperty(fd_node, "reg", (char *) fd_regs, sizeof(fd_regs));
num_regs = (num_regs / sizeof(fd_regs[0]));
prom_apply_obio_ranges(fd_regs, num_regs);
- sun_fdc = (struct sun_flpy_controller *) sparc_alloc_io(fd_regs[0].phys_addr,
- 0x0,
- fd_regs[0].reg_size,
- "floppy",
- fd_regs[0].which_io,
- 0x0);
+ memset(&r, 0, sizeof(r));
+ r.flags = fd_regs[0].which_io;
+ r.start = fd_regs[0].phys_addr;
+ sun_fdc = (struct sun_flpy_controller *)
+ sbus_ioremap(&r, 0, fd_regs[0].reg_size, "floppy");
/* Last minute sanity check... */
if(sun_fdc->status_82072 == 0xff) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)