a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 expansion.library
  AddBootNode
  AddConfigDev
  AddDosNode
  AllocConfigDev
  AllocExpansionMem
  ConfigBoard
  FindConfigDev
  FreeConfigDev
  FreeExpansionMem
  GetCurrentBinding
  MakeDosNode
  ObtainConfigBinding
  ReadExpansionByte
  ReadExpansionRom
  ReleaseConfigBinding
  RemConfigDev
  SetCurrentBinding
  WriteExpansionByte
Include
GuruMeditation
Docs » Autodocs » expansion.library » ReadExpansionRom

NAME

	ReadExpansionRom - read a boards configuration ROM space

SYNOPSIS

	error = ReadExpansionRom( board, configDev )
D0 A0 A1

FUNCTION

	(Not typically called by user code)
ReadExpansionRom reads a the ROM portion of an expansion
device in to cd_Rom portion of a ConfigDev structure.
This routine knows how to detect whether or not there is
actually a board there,
In addition, the ROM portion of a new style expansion board
is encoded in ones-complement format (except for the first
two nybbles -- the er_Type field). ReadExpansionRom knows
about this and un-complements the appropriate fields.

INPUTS

	board - a pointer to the base of a new style expansion board.
configDev - the ConfigDev structure that will be read in.
offset - a logical offset from the configdev base

RESULT

	error - If the board address does not contain a valid new style
expansion board, then error will be non-zero.
EXAMPLES
configDev = AllocConfigDev();
if( ! configDev ) panic();
error = ReadExpansionBoard( board, configDev );
if( ! error ) {
configDev->cd_BoardAddr = board;
ConfigBoard( configDev );
}

SEE ALSO

ReadExpansionByte(), WriteExpansionByte()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Anarchy

PHA
DJ
TSL
ANA

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se