Sponsored Content
Full Discussion: Identifying Network Ports
Special Forums Hardware Identifying Network Ports Post 302407168 by TonyFullerMalv on Wednesday 24th of March 2010 05:58:15 PM
Old 03-24-2010
They are both in the same PCI slot, i.e.:
pci@1,1
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Dual network ports

Hey all, I got a Ultra 60 and I'm going to put a quad fast ethernet card into it, also I have a NAS with dual ethernet ports. I'm going to setup the Ultra 60 as a gateway to the NAS. Is it possible to setup 2 ports on the quad fast ethernet card to talk to the 2 ports on the NAS? Both... (2 Replies)
Discussion started by: merlin
2 Replies

2. UNIX for Dummies Questions & Answers

telnetd: all network ports in use

I hope someone can enlighten me on this. A few weeks ago, the root file system my UnixWare 7.1.1 server became corrupt so I ended up doing a full restore of the OS from tape backup. Since then, after I get about 270 users on the system, the message "telnetd: all network ports in use" is... (1 Reply)
Discussion started by: davekox
1 Replies

3. Shell Programming and Scripting

Identifying RF users

HP-UX All, I work in a manufacturing environment where some users connect to our Progress-based system with wireless RF units (Bar-code). Sometimes they go out of range and get disconnected but their session remains alive (ghost sessions). This sometimes causes record lock problems and is a pain.... (6 Replies)
Discussion started by: rm-r
6 Replies

4. Solaris

How to identifying the network card ?

Hi Experts, Can we use some command from unix to find the available network interface? I did tried Its listing following, however how can I decide the which vender card is attached e.g. if its hme , bge or some thing else Thanks (7 Replies)
Discussion started by: kumarmani
7 Replies

5. UNIX for Dummies Questions & Answers

identifying running processes

how to identify the processes running by giving the parent process id (1 Reply)
Discussion started by: trichyselva
1 Replies

6. UNIX for Advanced & Expert Users

Identifying IO without the use of IOTop

Hey, I'm in the process of working on a script to identify IO usage on a high IO server I have setup (Debian Etch). My question is how can identify specific processes that are using much of these resources, I can identify the processes using IOTOP, but doing it remotely via script can be a pain... (1 Reply)
Discussion started by: dnbert
1 Replies

7. Shell Programming and Scripting

identifying duplicate entries

hi all, have got a large log file and was wondering if there is a easy way on solaris box to grep out duplicate entries based on email address ?? sample log file : 2010-06-19,04:08:12,235632470,2010-06-18T00:00:00.000+12:00,zinny123@hotmail.com... (2 Replies)
Discussion started by: cesarNZ
2 Replies

8. Linux

nix User Access Restrictions to Network, USB ports, PCMCIA, CDROM

How to create a user account on a Linux desktop machine with restrictions on connecting to the LAN, WAN, PCMCIA ports, Firewire, CDROM and generally any user controllable output options? I have the task to set up a machine for users working with sensitive data that should not be leaving the... (1 Reply)
Discussion started by: netfreighter
1 Replies

9. Linux

Ports,number of slots,network devices - UNIX

Hi All, Can someone help me in finding out below information from ReHat linux,Solaris,AIX, hp-ux machine : 1. How to find total number of ports in supported by each slot. 2. name of ports that are used to transmit data to the printer 3. total number of slots on a network device (2 Replies)
Discussion started by: omkar.jadhav
2 Replies

10. UNIX for Beginners Questions & Answers

Identifying a process

morning, i introduce the following sentence: "sudo lsof -i | grep smtp" ang get a list of the processes. two of them i don't know what is the function: 29574 & 29575, with the following indication: "memo" the rest of the processes shown are smtpd. i kill these two processes and they disappear,... (4 Replies)
Discussion started by: brijan007
4 Replies
PCI(9)							   BSD Kernel Developer's Manual						    PCI(9)

NAME
pci, pci_read_config, pci_write_config, pci_enable_busmaster, pci_disable_busmaster, pci_enable_io, pci_disable_io, pci_set_powerstate, pci_get_powerstate, pci_find_bsf, pci_find_dbsf, pci_find_device -- PCI bus interface SYNOPSIS
#include <sys/bus.h> #include <dev/pci/pcivar.h> #include <dev/pci/pcireg.h> #include <machine/pci_cfgreg.h> void pci_write_config(device_t dev, int reg, uint32_t val, int width); int pci_enable_busmaster(device_t dev); int pci_disable_busmaster(device_t dev); int pci_enable_io(device_t dev, int space); int pci_disable_io(device_t dev, int space); int pci_set_powerstate(device_t dev, int state); int pci_get_powerstate(device_t dev); uint32_t pci_read_config(device_t dev, int reg, int width); device_t pci_find_bsf(uint8_t bus, uint8_t slot, uint8_t func); device_t pci_find_dbsf(uint32_t domain, uint8_t bus, uint8_t slot, uint8_t func); device_t pci_find_device(uint16_t vendor, uint16_t device); DESCRIPTION
The pci set of functions are used for managing PCI devices. The pci_read_config() function is used to read data from the PCI configuration space of the device dev, at offset reg, with width specifying the size of the access. The pci_write_config() function is used to write the value val to the PCI configuration space of the device dev, at offset reg, with width specifying the size of the access. The pci_enable_busmaster() function enables PCI bus mastering for the device dev, by setting the PCIM_CMD_BUSMASTEREN bit in the PCIR_COMMAND register. The pci_disable_busmaster() function clears this bit. The pci_enable_io() function enables memory or I/O port address decoding for the device dev, by setting the PCIM_CMD_MEMEN or PCIM_CMD_PORTEN bit in the PCIR_COMMAND register appropriately. The pci_disable_io() function clears the appropriate bit. The space argument specifies which resource is affected; this can be either SYS_RES_MEMORY or SYS_RES_IOPORT as appropriate. NOTE: These functions should be used in preference to manually manipulating the configuration space. The pci_get_powerstate() function returns the current ACPI power state of the device dev. If the device does not support power management capabilities, then the default state of PCI_POWERSTATE_D0 is returned. The following power states are defined by ACPI: PCI_POWERSTATE_D0 State in which device is on and running. It is receiving full power from the system and delivering full functional- ity to the user. PCI_POWERSTATE_D1 Class-specific low-power state in which device context may or may not be lost. Busses in this state cannot do any- thing to the bus, to force devices to lose context. PCI_POWERSTATE_D2 Class-specific low-power state in which device context may or may not be lost. Attains greater power savings than PCI_POWERSTATE_D1. Busses in this state can cause devices to lose some context. Devices must be prepared for the bus to be in this state or higher. PCI_POWERSTATE_D3 State in which the device is off and not running. Device context is lost, and power from the device can be removed. PCI_POWERSTATE_UNKNOWN State of the device is unknown. The pci_set_powerstate() function is used to transition the device dev to the ACPI power state state. It checks to see if the device is PCI 2.2 compliant. If so, it checks the capabilities pointer to determine which power states the device supports. If the device does not have power management capabilities, the default state of PCI_POWERSTATE_D0 is set. The pci_find_bsf() function looks up the device_t of a PCI device, given its bus, slot, and func. The slot number actually refers to the number of the device on the bus, which does not necessarily indicate its geographic location in terms of a physical slot. Note that in case the system has multiple PCI domains, the pci_find_bsf() function only searches the first one. Actually, it is equivalent to: pci_find_dbsf(0, bus, slot, func); The pci_find_dbsf() function looks up the device_t of a PCI device, given its domain, bus, slot, and func. The slot number actually refers to the number of the device on the bus, which does not necessarily indicate its geographic location in terms of a physical slot. The pci_find_device() function looks up the device_t of a PCI device, given its vendor and device IDs. Note that there can be multiple matches for this search; this function only returns the first matching device. IMPLEMENTATION NOTES
The pci_addr_t type varies according to the size of the PCI bus address space on the target architecture. SEE ALSO
pci(4), pciconf(8), bus_alloc_resource(9), bus_dma(9), bus_release_resource(9), bus_setup_intr(9), bus_teardown_intr(9), devclass(9), device(9), driver(9), rman(9) "NewBus", FreeBSD Developers' Handbook, http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/developers-handbook/. Shanley and Anderson, PCI System Architecture, Addison-Wesley, 2nd Edition, ISBN 0-201-30974-2. AUTHORS
This manual page was written by Bruce M Simpson <bms@FreeBSD.org>. BUGS
The kernel PCI code has a number of references to ``slot numbers''. These do not refer to the geographic location of PCI devices, but to the device number assigned by the combination of the PCI IDSEL mechanism and the platform firmware. This should be taken note of when working with the kernel PCI code. BSD
September 30, 2007 BSD
All times are GMT -4. The time now is 06:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy