Path: utzoo!attcan!uunet!husc6!mailrus!ames!pasteur!ucbvax!unisoft!paul From: paul@unisoft.UUCP (n) Newsgroups: comp.sys.mac.programmer Subject: Re: Serial drivers and interrupt trapping Keywords: Macintosh, Serial, Interrupt, Programming Message-ID: <1299@unisoft.UUCP> Date: 28 Sep 88 16:36:38 GMT References: <10407@tekecs.TEK.COM> Reply-To: paul@unisoft.UUCP (Paul Campbell) Lines: 37 In article <10407@tekecs.TEK.COM> jeffsi@tekecs.TEK.COM (Jeff Siegel) writes: ] Help!! I am trying desperately to write a serial driver which will ] allow me to: (1) trap the interrupt ] (2) load the data pending ] (3) do some special processing whenever a specific sized ] packet has been completely grabbed ] ] I've done this type of thing before on other machines (breaking the ] rules though). I'd like to do it on the Mac in a standard way, but ] Inside Macintosh V1/2 just doesn't give enough information... ] Be warned! Doing something like this will NOT work with a 3rd party serial card (yes they do exist), (who knows maybe it wont work on future Macs, they may change the hardware, that's why there is a driver interface), if you want to write portable code make sure you use the interface in IM2/4. The only problem with connecting to 3rd party cards is the original 'appliance' idea (its a closed box, it only has two serial ports ..... etc etc). At the moment the only 'known' ports have names '.AIn'/'.Aout', '.Bin'/'.Bout', if you want to connect to 3rd party boards you have to know their 'real' names. Apple have publicly said that this will all be fixed in the medium term (ie probably sometime next year), in the short term I have code which I have put in the public domain (mail me if you want a copy) that searches the driver name space (the unit table) for driver pairs that have names of the formIn and Out ('In'/'Out' are case insensitive) and returns a list to the caller, this seems to identify all the drivers of all the boards I know of. Paul Campbell -- Paul Campbell, UniSoft Corp. 6121 Hollis, Emeryville, Ca E-mail: ..!{ucbvax,hoptoad}!unisoft!paul Nothing here represents the opinions of UniSoft or its employees (except me) "Nuclear war doesn't prove who's Right, just who's Left" (ABC news 10/13/87)