Sponsored Content
Full Discussion: SCSI interfacing by C
Top Forums Programming SCSI interfacing by C Post 302322184 by Ahmed waheed on Wednesday 3rd of June 2009 04:49:44 AM
Old 06-03-2009
Lightbulb SCSI interfacing by C

how can I make interfacing with the SCSI controller on linux system using C language to send or recieve data via this SCSI port like I made with serial port and socket ???Smilie
how can I deal with this port ??Smilie
how can I get its address or its device name ???Smilie

thanks for help.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Scsi

How can you get a scsi card to initalize or decome available at boot up on AIX 4.3 (1 Reply)
Discussion started by: truma1
1 Replies

2. Filesystems, Disks and Memory

Compaq Scsi

Howto make Debian GNU/Linux install boot on a Compaq DeskPro XL 590 with Compaq SCSI diskdrive? The problem is that Compaq's Scsi controller sems to be odd. help please :) (0 Replies)
Discussion started by: Esaia
0 Replies

3. UNIX for Advanced & Expert Users

Scsi

I would like to install a AIT drive to the scsi connector on our solaris box. I am very new to the unix world and would be greatful if someone could help or lead me in the right direction. Thanks (4 Replies)
Discussion started by: vpyle
4 Replies

4. Solaris

Scsi cables - which ones?

Is there any specific scsi cables that you need to get when connecting a tape drive or external storage or does one type of cable fit all? ie. I can buy the following: HD68 to HD68 with Ferrites supports S-E Ultra/Wide transfer rates. But will this work for tape drives and storage? I... (1 Reply)
Discussion started by: frustrated1
1 Replies

5. AIX

SCSI Disks

Hi Is it possible to install in p5 and pSeries SCSI Disks from SUN on DELL? Will they work? Regards, Pit (0 Replies)
Discussion started by: piooooter
0 Replies

6. UNIX for Dummies Questions & Answers

SCSI Harddisk

hey guys this is my problem I have SCO unix installed on a IDE h/drive. I want to add a SCSI hard drive, how do i do that within UNIX (1 Reply)
Discussion started by: kwame.neilsen
1 Replies

7. Shell Programming and Scripting

interfacing ethereal

Hi All; plz suggest me any perl script to get the ethereal messeges.To be more specific, i need to write a perl script that when an ethereal tool is started and captures any traces, can get that trace......... :) (0 Replies)
Discussion started by: trupti_rinku
0 Replies

8. Shell Programming and Scripting

Interfacing a shell script with Perl Tk GUI

I want to make a GUI in perl tk where I can give some user input. This user input is the command line argument for a shell script. After giving the input parameters I want the user to press a button and the shell script should start executing. How should i interface the shell script with the GUI? (0 Replies)
Discussion started by: lassimanji
0 Replies

9. Programming

problem in coding for GSM interfacing using serial port

i am having some coding problem in c for interfacing the GSM module through serial port. i want to send/receive sms. i have done all the setting for the port and know the AT command to use in this but i am actually having problem in reading and writing from serial port how to handle the signal when... (1 Reply)
Discussion started by: harsh_it
1 Replies

10. Emergency UNIX and Linux Support

Interfacing applications and ports

Is there a way to understand/look into the list of interfaces that are connected to an AIX box. Primarily I am looking for the list of IP addresses that can connect to an AIX server, and using which port the access is possible? (2 Replies)
Discussion started by: ggayathri
2 Replies
atapi_ide(7)						 Miscellaneous Information Manual					      atapi_ide(7)

NAME
atapi_ide - Interface for ATAPI or IDE (PC) devices SYNOPSIS
PCI bus CMD/Acer ATAPI/IDE adapter: bus pci0 at * bus ata0 at * controller scsi0 at ata0 slot 0 controller scsi1 at ata0 slot 1 PCI bus Cypress ATAPI/IDE adapter: bus pci0 at * bus ata0 at * bus ata1 at * controller scsi0 at ata0 slot 0 controller scsi1 at ata1 slot 0 PCMCIA bus ATA/IDE disk card: bus pcmcia0 at * bus ata0 at pcmcia? controller scsi0 at ata0 DESCRIPTION
Devices commonly known for their use on PC devices as ATA or IDE devices are supported using the SCSI CAM device driver. The ATA standard has also been expanded to include what are known as ATAPI devices. The SCSI CAM device driver is also used for those disks and CD-ROM devices. These devices may also be known under the names EIDE, ATA-2, Fast-ATA, or Ultra-ATA. Beacuse the ATA/IDE standard was not developed until after many of the devices that used this standard were produced, there are many devices which do not strictly comply with the standard. While it is possible some industry standard devices may appear to work, it is also possible they will cause hang or data corruption cases when used under more stressful situations. For this reason, it is recommended that only the supported devices be used. These devices have been tested and are certified for correct operation. ATAPI/IDE controllers allow the connection of two devices. These two devices are known as the master device and the slave device. If only one device is connected, that device must be the master (slave-only configurations are not supported). When used by the SCSI CAM device driver, the IDE master device is assigned SCSI id 0 for that controller. The slave device is assigned SCSI id 1 for that controller. No other SCSI ids are assigned on that controller. Most ATAPI/IDE adapters contain two channels (known as the primary and secondary). Each of these channels may contain their own master and slave devices. Therefore, a dual channel ATAPI/IDE controller may contain up to 4 devices (a master and slave pair on each channel). These 4 devices are then accessed as SCSI id 0 and 1 on each channel. Many SCSI operations translate perfectly for use on IDE. For example, read and write operations are the same. However, many SCSI disk mode pages are emulated by the IDE device driver. For example, you can display the SCSI inquiry mode pages using the following command: % scu show inq pages pages are created by the device driver to contain the long (full IDE) form of the device name, serial number, revision, and the operational modes of the device. Only a shortened version of this information is available with the standard SCSI inquiry command. Note also that the following command: % scu show pages Shows that the SCSI mode pages contain only partial information. Only that informa- tion (such as geometry) that the drive reports to the system is able to be reformatted into these emulated SCSI mode pages. Much of the information (such as RPM) is simply not available from the drive, and therefore not accurately reported. ATAPI devices are much more closely related to SCSI devices, and as such contain their own mode pages. Therefore, for these devices, the mode page values reported are those from the device, and no emulation is involved. ATAPI tape devices are not supported at this time. FILES
/dev/disk/dsk??? /dev/disk/dsk??? RELATED INFORMATION
SCSI(7), rz(7), and disklabel(8) delim off atapi_ide(7)
All times are GMT -4. The time now is 12:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy