/*
* Examine all AUTOCONFIG(tm) boards in the system
*/
include "exec/types.h"
include "libraries/configvars.h"
struct Library *OpenLibrary();
struct ConfigDev *FindConfigDev();
struct Library *ExpansionBase;
void main()
{
struct ConfigDev *myCD=0;
ExpansionBase=OpenLibrary("expansion.library",0L);
while(myCD=FindConfigDev(myCD,-1L,-1L)) /* search for any ConfigDev */
{
printf("\n---ConfigDev structure found at location $%1x---\n",myCD);
/* These valuses are read directly from the board */
printf("er Manufacturer =");
printf("%d,",myCD->cd Rom.er Manufacturer);
printf("S%x,",myCD->cd Rom.er Manufacturer);
printf("(-$%4x)\n",-myCD->cd Rom.er Manufacturer);
printf("er Product =");
printf("%d,",myCD->cd Rom.er Product);
printf("$%x,",myCDÑ>cd Rom.er Product);
printf("(-$%x)\n",-myCD->cd Rom.er Product);
printf("er Type =$%x\n",myCD->cd Rom.er Type);
printf("er Flags =");
printf("$%x\n",myCD->cd Rom.er Flags);
/* These values are generated when the AUTOCONFIG(tm) software
* relocate the board
printf("cd BoardAddr =$%1x\n",myCD->cd BoardAddr);
printf("cd BoardSize =$%1x (%ldK)\n",
myCD->cd BoardSize,((ULONG)myCD->cd BoardSize)/1024);
printf("cd Flags =$%x\n",myCD->cd Flags);
}
CloseLibrary(ExpansionBase);
}
- Appendix G 341 –