Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pcitweak(1) [xfree86 man page]

PCITWEAK(1)						      General Commands Manual						       PCITWEAK(1)

NAME
pcitweak - read/write PCI config space SYNOPSIS
pcitweak -l pcitweak -r PCI-ID [-b|-h] offset pcitweak -w PCI-ID [-b|-h] offset value DESCRIPTION
Pcitweak is a utility that can be used to examine or change registers in the PCI configuration space. On most platforms pcitweak can only be run by the root user. OPTIONS
-l Probe the PCI buses and print a line for each detected device. Each line contains the bus location (bus:device:function), chip vendor/device, card (subsystem) vendor/card, revision, class and header type. All values printed are in hexadecimal. -r PCI-ID Read the PCI configuration space register at offset for the PCI device at bus location PCI-ID. PCI-ID should be given in the form bus:device:function, with each value in hexadecimal. By default, a 32-bit register is read. -w PCI-ID Write value to the PCI configuration space register at offset for the PCI device at bus location PCI-ID. PCI-ID should be given in the form bus:device:function, with each value in hexadecimal. By default, a 32-bit register is written. -b Read or write an 8-bit value (byte). -h Read or write a 16-bit value (halfword). SEE ALSO
scanpci(1) AUTHORS
David Dawes (dawes@xfree86.org). XFree86 Version 4.7.0 PCITWEAK(1)

Check Out this Related Man Page

PCITWEAK(1)						      General Commands Manual						       PCITWEAK(1)

NAME
pcitweak - read/write PCI config space SYNOPSIS
pcitweak -l pcitweak -r PCI-ID [-b|-h] offset pcitweak -w PCI-ID [-b|-h] offset value DESCRIPTION
Pcitweak is a utility that can be used to examine or change registers in the PCI configuration space. On most platfoms pcitweak can only be run by the root user. OPTIONS
-l Probe the PCI buses and print a line for each detected device. Each line contains the bus location (bus:device:function), chip vendor/device, card (subsystem) vendor/card, revision, class and header type. All values printed are in hexadecimal. -r PCI-ID Read the PCI configuration space register at offset for the PCI device at bus location PCI-ID. PCI-ID should be given in the form bus:device:function, with each value in hexadecimal. By default, a 32-bit register is read. -w PCI-ID Write value to the PCI configuration space register at offset for the PCI device at bus location PCI-ID. PCI-ID should be given in the form bus:device:function, with each value in hexadecimal. By default, a 32-bit register is written. -b Read or write an 8-bit value (byte). -h Read or write a 16-bit value (halfword). SEE ALSO
scanpci(1) AUTHORS
David Dawes (dawes@xfree86.org). XFree86 Version Version 4.3.0 PCITWEAK(1)
Man Page

15 More Discussions You Might Find Interesting

1. Programming

Hi...Need Help

Hi, I am getting a bus error when i run the following code. #include <stdio.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/sem.h> #include <errno.h> main() { int semid,retval; semid=semget(0x20,1,IPC_CREAT|0666); retval= semctl(semid,0,GETVAL,0); printf("The... (1 Reply)
Discussion started by: jack_2205
1 Replies

2. Programming

PCI device probe and find

:confused: Hi, everybody. Pleeeeese HLP!!! I write PCI device driver for bridge controller PCI-VME bus in freeBSD 2.2. And firs run function probe(): static char* probe(tag, type). Whuy probe() don't work for my vendorID and deviceID (bridge controller and videoadapter). But... (1 Reply)
Discussion started by: Alex_T
1 Replies

3. UNIX for Advanced & Expert Users

Identifying onboard PCI device

Hi all, I have customized tool that displays PCI device information (something similar to the linux - "lspci") . Now, I need to display information only on "plug-in" cards. Are there any ways to distinguish between "on-board" PCI device and a PCI "plug-in" card. Thanks, Dhilip (2 Replies)
Discussion started by: diliphere
2 Replies

4. UNIX for Dummies Questions & Answers

LTO 3 on rp7400

hi guys, I have a rp7400 running on 11i and i would like to attach LTO3 certance OEM quantum to this box using an ultra 2 scsi lvd/se-A5149A PCI adapter.Once i attached this card and try to detect it in boot handler running the io command,i can't see the card but once i attach it to the internal... (0 Replies)
Discussion started by: giriplug
0 Replies

5. UNIX for Dummies Questions & Answers

how to read and write device registers

hello friends, While in the process of writing device drivers, i am facing problem in reading and writing device registers.I got base address of those mapped device registers. Can i add offset of those registers to that Base address to get access of those... (1 Reply)
Discussion started by: sriram.ec
1 Replies

6. UNIX for Dummies Questions & Answers

device location codes

what is meant by device location codes? what is their format and how can i identify the location of a device in redhat linux? (1 Reply)
Discussion started by: docaia
1 Replies

7. BSD

PROBE not find the device ID

Hi All, Probe is not returning the Device ID, while device (PCI Express-to-PCI Bridge) is already detected by "lspci". I checked this with printing all the device ID which has been detected. Can anyone give me any suggestion or solution. Thanks (in advance) Appu (2 Replies)
Discussion started by: appu
2 Replies

8. Shell Programming and Scripting

Read Write byte range/chunk of data from specific location in file

I am new to Unix so will really appreciate if someone can guide me on this. What I want to do is: Step1: Read binary file - pick first 2 bytes, convert from hex to decimal. Read the next 3 bytes as well. 2 bytes will specify the number of bytes 'n' that I want to read and write... (1 Reply)
Discussion started by: Kbenipel
1 Replies

9. Solaris

Getting server specification

Hi all, Can anyone help me to get the server specifications like the following? eg. SUN Fire XXX X UltraSPARC X MHZ X MB Memory X GB od hard disk X On board PCI IO card X PCI HNI card Thanks. (4 Replies)
Discussion started by: beginningDBA
4 Replies

10. Shell Programming and Scripting

bus bit blasting

I have a file containing bus notations which need to be expanded. Example: file contains a line like below : assign gam_ci_raddr = `GTTBTOP.gt2gti1.gt2sqidi1.gam_ci_raddr; What needed is assign gam_ci_raddr = `GTTBTOP.gt2gti1.gt2sqidi1.gam_ci_raddr; assign gam_ci_raddr =... (1 Reply)
Discussion started by: pitagi
1 Replies

11. Linux

PCI Card recognized

I installed PCI Card HP SC44Ge - SAS1068E on my linux CentOS 5.4 is there a way to find out if the PCI is properly installed and recognized by linux. lspci is enough? just to add that PCI card is connected to a tape... also how can I find out driver and firmware version? thanks a... (1 Reply)
Discussion started by: karlochacon
1 Replies

12. UNIX for Dummies Questions & Answers

Laptop device interface

Hey guys, I know that in normal desktop computers, the CPU interfaces the video card, sound card, USB card, etc by the PCI slots but what about laptops? I've heard that laptops also have a PCI bus even though do don't have a PCI slot so does this mean that the same address space that would... (4 Replies)
Discussion started by: neur0n
4 Replies

13. Linux

Lan card not reaching Gateway

Hi, I have this problem on RHEL box. I am using two NIC's of same model and make (Intel 82557) in the adjacent PCI slots . I am using each one for different subnet and have assigned them ipaddresses and gateways of respective subnets . While one is O.K. connecting to its ... (5 Replies)
Discussion started by: dextergenious
5 Replies

14. UNIX for Dummies Questions & Answers

Get the eeprom dump using PCI bus address

Hi, I need to get an output that is the same as "ethtool -e eth0" But I need to use another method that does not use the eth port ID (ethX). Does anyone know of any method? Thanks!! (3 Replies)
Discussion started by: h0ujun
3 Replies

15. Shell Programming and Scripting

Write to 1 failed [No space left on device]

I am getting error in a shell script having a simple date command. Error is " write to 1 failed ". We saw that /tmp folder was 100% full. When we cleared some space in /tmp folder then script worked fine. Why does date command(or any other command) require space in /tmp folder? Which settings... (6 Replies)
Discussion started by: mahish20
6 Replies