Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ut-ngp.UUCP Path: utzoo!watmath!clyde!cbosgd!gatech!ut-sally!ut-ngp!rick From: rick@ut-ngp.UUCP (Rick Watson) Newsgroups: net.micro.mac Subject: Re: MacSCSI and HFS Message-ID: <2799@ut-ngp.UUCP> Date: Sun, 12-Jan-86 22:12:47 EST Article-I.D.: ut-ngp.2799 Posted: Sun Jan 12 22:12:47 1986 Date-Received: Tue, 14-Jan-86 04:53:21 EST References: <171@winston.UUCP> Organization: UTexas Computation Center, Austin, Texas Lines: 78 Ok, here is a bit of my MacSCSI code. This will add a customizable icon for your MacSCSI. A get info for the disk (and other places) will say "SCSI" instead of "AppleTalk" for "Where". Note that I use Megamax C, so you may have to do some hacking to get back to Aztec C. To re-customize the icon you will have to create the icon, decompile it with REdit, and edit the resulting hex back into the following code. Rick Watson University of Texas Computation Center arpa: rick@ngp.UTEXAS.EDU rick@ngp.ARPA uucp: ...seismo!ut-sally!ut-ngp!rick rick@ut-ngp.UUCP bitnet: ccaw001@utadnx phone: 512/471-3241 goes into np_drv.c: /* io parameter block */ #define io_VRefNum 22 /* volume reference number */ #define io_CSCode 26 /* code */ #define io_csParam 28 /* cs parameters */ #define io_lun 28 /* 2 cs logical unit number */ #define io_sect 30 /* 2 cs sector number */ #define io_addr 32 /* 4 cs buffer address */ . . . control: cmpi.w #21, io_CSCode(a0) beq.s cntrl1 /* if Finder 4.1 get icon call */ . . . cntrl1: clr.l d0 move.l a1, -(sp) lea icnlst, a1 /* pass icon list address */ move.l a1, io_csParam(a0) move.l (sp)+, a1 bra tst . . . icnlst: dc.w 0x0000,0x0000,0x0000,0x0000,0x03FF,0xFFF8 dc.w 0x0600,0x0018,0x0C00,0x0038,0x1800,0x0068 dc.w 0x3000,0x00C8,0x6000,0x0188,0xC000,0x0308 dc.w 0xFFFF,0xFE08,0xFFFF,0xFE08,0xC000,0x0608 dc.w 0xC000,0x0608,0xC000,0x0608,0xC000,0x0608 dc.w 0xC000,0x0608,0xC000,0x0608,0xC001,0xC608 dc.w 0xC001,0xC608,0xC000,0x0608,0xC000,0x0608 dc.w 0xC000,0x0618,0xC000,0x0630,0xC000,0x0660 dc.w 0xC000,0x06C0,0xFFFF,0xFF80,0xFFFF,0xFE00 dc.w 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000 dc.w 0x0000,0x0000,0x0000,0x0000 dc.w 0x0000,0x0000,0x0000,0x0000,0x03FF,0xFFF8 dc.w 0x07FF,0xFFF8,0x0FFF,0xFFF8,0x1FFF,0xFFF8 dc.w 0x3FFF,0xFFF8,0x7FFF,0xFFF8,0xFFFF,0xFFF8 dc.w 0xFFFF,0xFFF8,0xFFFF,0xFFF8,0xFFFF,0xFFF8 dc.w 0xFFFF,0xFFF8,0xFFFF,0xFFF8,0xFFFF,0xFFF8 dc.w 0xFFFF,0xFFF8,0xFFFF,0xFFF8,0xFFFF,0xFFF8 dc.w 0xFFFF,0xFFF8,0xFFFF,0xFFF8,0xFFFF,0xFFF8 dc.w 0xFFFF,0xFFF8,0xFFFF,0xFFF0,0xFFFF,0xFFE0 dc.w 0xFFFF,0xFFC0,0xFFFF,0xFF80,0xFFFF,0xFE00 dc.w 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000 dc.w 0x0000,0x0000,0x0000,0x0000 dc.b 4 /* length of name */ dc.b "SCSI" /* name */ dc.b 0 /* alignment */