Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ slots(3X) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought




slots(3X) slots(3X)
NAME slots - ROM library functions SYNOPSIS cc [flags] files -lslots [libraries] DESCRIPTION The routines in the slots library provide access to board slot ROM from user processes and slot device drivers. Calls to library routines do not require knowledge of either the board ROM configuration or the ROM addressing requirements. slot_PRAM_init(slot, data) Read the PRAM init structure for slot into the buffer pointed to by data. slot_board_flags(slot) Read and return the board flags for slot. slot_board_id(slot) Read and return the board ID number for slot. slot_board_name(slot, data, size) Read up to size bytes of the board name string for slot into the buffer pointed to by data. slot_board_type(slot, data) Read and return the unsigned 64 bit or 8 byte board type for slot into the buffer pointed to by data. slot_board_vendor_info(kind, slot, data, size) For slot get size bytes of the vendor information string of type kind into the buffer pointed to by data. slot_directory(slot, data, size) For slot read the resource directory into the buffer of size entries pointed to by data. slot_ether_addr(slot, data) For slot read 6 bytes of ethernet address into the buffer pointed to by data. slot_part_num(slot, data, size) For slot get size bytes of the part number string into the buffer pointed to by data. slot_primary_init(slot, data) For slot read the primary init structure into the buffer pointed to by data. slot_rev_level(slot, data, size) For slot get size bytes of the revision level of the April, 1990 1



slots(3X) slots(3X)
ROM into the buffer pointed to by data. slot_serial_num(slot, data, size) For slot get size bytes of serial number string into the buffer pointed to by data. slot_test(slot, string, size, c, s, l) For slot, slot_test returns the value of each Test resource in its respective data type. string is a char- acter array, c is a char, s is a short, and l is a long. char, short, and long must be passed to slot_test by address. A negative return value indicates that slot does not have a Test resource. A positive return value indicates the number of available Test resources. slot_vendor_id(slot, data, size) For slot read size bytes of vendor ID string into the buffer pointed to by data. SEE ALSO Building A/UX Device Drivers NOTE The slots library is only accessible to processes with su- peruser privileges due to the required phys call to access board ROM. 2 April, 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026