Path: utzoo!attcan!uunet!lll-winken!ames!oliveb!amiga!boing!dale From: dale@boing.UUCP (Dale Luck) Newsgroups: comp.sys.amiga Subject: Re: Math Chip Interface Message-ID: <583@boing.UUCP> Date: 7 Jan 89 15:26:07 GMT References: <8901070305.AA02117@terra.oscs.montana.edu> Reply-To: dale@boing.UUCP (Dale Luck) Organization: Boing, Milpitas, Ca. Lines: 55 In article <8901070305.AA02117@terra.oscs.montana.edu> iphwk@MTSUNIX1.BITNET (Bill Kinnersley) writes: >[In "Re: Math Chip Interface", Dale Luck said:] >: >: If there is 680x0 and an 881 as a memory mapped io device then the ieee >: libraries will talk to the chip as a peripheral device spoon feeding >: and extracting the numbers. > >How do the libraries determine where my 68881 is located in memory? >(How do *I* determine where it is located?) You autoconfig software should create a resource structure like the following and add it via AddResource(). The ieee libraries call OpenResource("MathIEEE.resource",0) If it succeeds then it checks the contents of the resource structure. ---------------------------------------------------------------- A portion in reproduced here of mathresource.h This file should be in your V1.3 include files. struct MathIEEEResource { struct Node MathIEEEResource_Node; unsigned short MathIEEEResource_Flags; unsigned short *MathIEEEResource_BaseAddr; /* ptr to 881 if exists */ void (*MathIEEEResource_DblBasInit)(); void (*MathIEEEResource_DblTransInit)(); void (*MathIEEEResource_SglBasInit)(); void (*MathIEEEResource_SglTransInit)(); void (*MathIEEEResource_ExtBasInit)(); void (*MathIEEEResource_ExtTransInit)(); }; /* definations for MathIEEEResource_FLAGS */ #define MATHIEEERESOURCEF_DBLBAS (1<<0) #define MATHIEEERESOURCEF_DBLTRANS (1<<1) #define MATHIEEERESOURCEF_SGLBAS (1<<2) #define MATHIEEERESOURCEF_SGLTRANS (1<<3) #define MATHIEEERESOURCEF_EXTBAS (1<<4) #define MATHIEEERESOURCEF_EXTTRANS (1<<5) --------------------------------------------------------------- If you have a 68881 in your system as a memory mapped device then a ptr to the base address should be put in MathIEEEResource_BaseAddr. If you have some other type of ieee math device that is not a 68881 then this gets a little more complicated. However it should be possible. > > >-- >--Bill Kinnersley > Physics Department Montana State University Bozeman, MT 59717 > INTERNET: iphwk@terra.oscs.montana.edu BITNET: IPHWK@MTSUNIX1 -- Dale Luck GfxBase/Boing, Inc. {uunet!cbmvax|pyramid}!amiga!boing!dale