AminetAminet
Search:
84479 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/pciscan.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Lists, or tests for attached PCI devices
Author:Peter Gordon
Uploader:pete petergordon org uk (Peter Gordon)
Type:util/cli
Version:1.4
Architecture:ppc-amigaos >= 4.0.0
Date:2006-03-10
Download:http://aminet.net/util/cli/pciscan.lha - View contents
Readme:http://aminet.net/util/cli/pciscan.readme
Downloads:1333

PCIScan for OS4 by Peter Gordon (pete()petergordon.org.uk)
=========================================================

Shows PCI cards attached to the system. Copy pci.ids (from pciids.sf.net), OR
vendors.txt (from pcidatabase.com) to devs: or s: and PCIScan will use it to
give names to all the devices.

The argument template is:

  VENDOR,DEVICE,DETAIL/S

If you run PCIScan without any arguments, you'll get a summary of all attached
devices.

If you specify a vendor and/or device without the detail switch, PCIScan
doesn't output anything, but returns with WARN set if the device is present,
for use in scripts, for example:

  pciscan vendor=0x10cc
  if WARN
    echo "MAI Logic device found!"
  endif
  
  pciscan vendor=$1002 device=$5157
  if WARN
    echo "ATI Radeon 7500 found!"
  endif
  
  pciscan 4354 2
  if WARN
    echo "EMU10K Sound Blaster Live found!"
  endif


If you specify the detail switch, you'll get a detailed list of all devices
attached to the system, and their parameters. If you specify a vendor and/or
device ID as well as the detail switch, you'll get detailed info for all
devices that match, for example:

1.Work:> PCIScan DETAIL VENDOR=$1102 DEVICE=$7002

Device #1:
  Vendor:           0x1102 (Creative Labs)
  Device:           0x7002 (SB Live! MIDI/Game Port)
  Class code:       0x098000
  RevisionID:       0x0A
  Interrupt:        Line 0x00, Pin 0x00
  Subsystem Vendor: 0x1102
  Subsystem ID:     0x0020
  Resource range #0 (IO)
    Base address:     0x00801220
    Physical address: 0x00801220
    Size:             0x00000010



History:

  1.0 - First release
  1.2 - Added DEVICE and VENDOR options

  1.3 (04-Mar-2004)

        · Supports both pciids.sf.net and pcidatabase.com lists
        · Added DETAIL switch
        · Compiled with newlib

  1.4 (08-Mar-2006)
  
        · Compiled with GCC 4.0.2
        · Removed all warnings from GCC 4.0.2 "-Wall -Werror"
        · Now checks for end-of-buffer more stringently (fixed
          DSI on new memory system)




Contents of util/cli/pciscan.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]               119153  391342  30.4% -lh5- d70f Mar  8 11:05 pci.ids
[generic]                23639   61408  38.5% -lh5- e35a Mar  8 11:12 pciscan
[generic]                  956    2013  47.5% -lh5- 77fb Mar  8 11:15 pciscan.doc
[generic]                   88     108  81.5% -lh5- d146 Mar 26  2004 testscript
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         4 files  143836  454871  31.6%            Mar 10 15:15

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>