• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/block/

Lines Matching refs:u_char

116 static u_char xd_drives, xd_irq = 5, xd_dma = 3, xd_maxsectors;
117 static u_char xd_override __initdata = 0, xd_type __initdata = 0;
124 static volatile u_char xd_error;
132 u_char i,controller;
138 u_char count = 0;
247 static u_char __init xd_detect (u_char *controller, unsigned int *address)
352 static int xd_readwrite (u_char operation,XD_INFO *p,char *buffer,u_int block,u_int count)
355 u_char cmdblk[6],sense[4];
357 u_char head,sector,control,mode = PIO_MODE,temp;
383 mode = xd_setup_dma(operation == READ ? DMA_MODE_READ : DMA_MODE_WRITE,(u_char *)(xd_dma_buffer),temp * 0x200);
393 switch (xd_command(cmdblk,mode,(u_char *)(*real_buffer),(u_char *)(*real_buffer),sense,XD_TIMEOUT)) {
432 static void xd_recalibrate (u_char drive)
434 u_char cmdblk[6];
458 static u_char xd_setup_dma (u_char mode,u_char *buffer,u_int count)
484 static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control)
503 static inline u_char xd_waitport (u_short port,u_char flags,u_char mask,u_long timeout)
542 static u_int xd_command (u_char *command,u_char mode,u_char *indata,u_char *outdata,u_char *sense,u_long timeout)
544 u_char cmdblk[6],csb,complete = 0;
604 static u_char __init xd_initdrives (void (*init_drive)(u_char drive))
606 u_char cmdblk[6],i,count = 0;
622 static void __init xd_manual_geo_set (u_char drive)
624 xd_info[drive].heads = (u_char)(xd_geo[3 * drive + 1]);
626 xd_info[drive].sectors = (u_char)(xd_geo[3 * drive + 2]);
646 static void __init xd_dtc5150cx_init_drive (u_char drive)
666 u_char n;
675 xd_info[drive].heads = (u_char)(geometry_table[n][1]); /* heads */
688 static void __init xd_dtc_init_drive (u_char drive)
690 u_char cmdblk[6],buf[64];
730 static void __init xd_wd_init_drive (u_char drive)
749 u_char cmdblk[6],buf[0x200];
750 u_char n = 0,rll,jumper_state,use_jumper_geo;
751 u_char wd_1002 = (xd_sigs[xd_type].string[7] == '6');
773 xd_info[drive].heads = (u_char)(geometry_table[n][1]);
814 static void __init xd_seagate_init_drive (u_char drive)
816 u_char cmdblk[6],buf[0x200];
847 static void __init xd_omti_init_drive (u_char drive)
888 static void __init xd_xebec_init_drive (u_char drive)
908 u_char n;
915 xd_info[drive].heads = (u_char)(geometry_table[n][1]); /* heads */
926 static void __init xd_override_init_drive (u_char drive)
929 u_char cmdblk[6],i;
937 xd_build(cmdblk,CMD_SEEK,drive,(u_char) test[0],(u_short) test[1],(u_char) test[2],0,0);
945 xd_info[drive].heads = (u_char) min[0] + 1;
947 xd_info[drive].sectors = (u_char) min[2] + 1;
974 static void __init xd_setparam (u_char command,u_char drive,u_char heads,u_short cylinders,u_short rwrite,u_short wprecomp,u_char ecc)
976 u_char cmdblk[14];
979 cmdblk[6] = (u_char) (cylinders >> 8) & 0x03;
980 cmdblk[7] = (u_char) (cylinders & 0xFF);
982 cmdblk[9] = (u_char) (rwrite >> 8) & 0x03;
983 cmdblk[10] = (u_char) (rwrite & 0xFF);
984 cmdblk[11] = (u_char) (wprecomp >> 8) & 0x03;
985 cmdblk[12] = (u_char) (wprecomp & 0xFF);