Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

do_config(9r) [osf1 man page]

do_config(9r)															     do_config(9r)

NAME
do_config - EISA/ISA: Initializes the device to its assigned configuration SYNOPSIS
void do_config( struct controller *ctlr_p ); ARGUMENTS
Specifies a pointer to the controller structure associated with the controller to be configured. The do_config routine obtains the device to initialize through its controller's associated controller structure pointer. DESCRIPTION
The do_config routine initializes the specified controller based on its power-up resource assignments. If the device uses either an inter- rupt or a DMA channel, then do_config also performs any setup requirements. For example, for controllers that connect to the EISA bus, do_config initializes the controller according to the parameters specified in the EISA configuration file. NOTES
The do_config routine is a generic interface that maps to a bus-specific interface that actually initializes the specified device. Using this routine to initialize a device makes the driver more portable across different bus architectures. Not all buses support the do_config routine. RETURN VALUES
None SEE ALSO
Routines: get_config(9r), get_info(9r) Data Structures: controller(9s) do_config(9r)

Check Out this Related Man Page

BADADDR(9r)															       BADADDR(9r)

NAME
BADADDR - General: Probes the address during device autoconfiguration SYNOPSIS
int BADADDR( caddr_t addr, int length, struct bus_ctlr_common *ptr ); ARGUMENTS
Specifies the address of the device registers or memory. Specifies the length (in bytes) of the data to be checked. Valid values are 1, 2, and 4 on 32-bit machines and 4 and 8 on 64-bit machines. Specifies a pointer to a bus_ctlr_common structure. You cast this argument as a pointer to either a bus or controller structure. DESCRIPTION
The BADADDR routine generates a call to a machine-dependent routine that does a read access check of the data at the supplied address and dismisses any machine check exception that may result from the attempted access. You call this routine to probe for memory or I/O devices at a specified address during device autoconfiguration. NOTES
You can use BADADDR in device drivers that are statically configured into the kernel. However, you cannot use BADADDR if the driver is dynamically configured into the kernel. If you implement the driver to be both statically and dynamically configured, you can declare a variable and use it to control the call to BADADDR. The following code fragment shows the use of such a variable used in the probe routine for the /dev/none driver: . . . if (none_is_dynamic) { /* Code to handle tasks associated with a dynamically * * configured driver */ . . . } else { /* Code to handle tasks (including the call to BADADDR) * * associated with a statically configured driver * * including call to BADADDR */ } . . . The EISA and ISA buses do not generate a machine check when BADADDR performs a read access to a nonexistent location. These buses always return success when BADADDR performs a read access to their address space. For the PCI bus and the VMEbus, you must do the following before calling BADADDR: Call the iohandle_to_phys routine to convert the I/O han- dle to a valid system physical address Call the PHYS_TO_KSEG routine to convert the valid system physical address to a kernel-unmapped vir- tual address Call the BADADDR routine, passing this kernel-unmapped virtual address as the first argument RETURN VALUES
The BADADDR routine returns the value 0 (zero) if the data is accessible or a nonzero value if the data is not accessible. BADADDR(9r)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

EISA CMOS checksum error

(3 Replies)
Discussion started by: dlee35
3 Replies

2. UNIX for Dummies Questions & Answers

Can't Lunch CDE

all Freind , Nice to be one of the member for this unix forum . I have problem with machnie ..i using controller C110 for Agilent Tester and using Unix platform . I have problem when rebooting my system suddenly i can't lunch my CDE to proceed . Error mesage shown as below :- **X... (6 Replies)
Discussion started by: amran
6 Replies

3. SCO

SCO 5.0.7 help

Ive never installed unix and have a hp proliant dl360 g5 server with E200i array controller and have no idea how to make it see the controller with bootstrap any ideas? (4 Replies)
Discussion started by: maconte
4 Replies

4. Solaris

Can't bring E25K system controller to OK prompt

Hi, Due to some changes at our company, we lost the password for the root and sms-svc account on the primary system controller (E25K). We connected a serial console to the system controller but we never managed to break the session to bring it to the OK prompt. (tried: ~#, ~ b, ~, , a b,... (9 Replies)
Discussion started by: Solarius
9 Replies

5. SCO

driver needed for hp smartarry p200i sas raid controller

recently we have purchased hp proliant ml350 g5 server and configured raid 5 with hp smartarray p200i sas controller.but i could not found any sas raid controller hp smartarry p200i driver for sco unix 5.0.7 :(.i searched on hp support site,but no use.any one can help. (3 Replies)
Discussion started by: prakrithi
3 Replies

6. Solaris

changing controller name

Dear Solarizer, If i have a disk let say like this c1t0d0s0 How to change the controller to be come example : c3t0d0s0 Thanxs For your replay Regads, tpx (3 Replies)
Discussion started by: tpx99
3 Replies

7. Red Hat

linux server with raid controller card

I am planning on building a fedora box with raid controller (database server). Is anybody done that ? also what kind of software do you need to backup and recover data. (1 Reply)
Discussion started by: amir07
1 Replies

8. Programming

Recommendations For Generic C Data Structures & Algorithms

Hi All, Rather than re-invent the wheel, I am trying to find a mature C library that provides generic support for lists, trees, etc. I understand C doesn't formally support "generics", but am aware of a few solutions like GLib and SGLib. Can anyone kindly recommend what they think is best?... (1 Reply)
Discussion started by: tristan12
1 Replies

9. HP-UX

[Joy Share] - Replace an unknown status controller on HP FC60 disk array

Replace an unknown status controller on HP FC60 disk array Author:JoyOnline JoyChangLu@gmail.com Trouble description: The users detected that the status of controller at A is unknown. Analysis and diagnostic: Physical observed all leds on enclosure of disk array is normal. The... (4 Replies)
Discussion started by: JoyOnLine
4 Replies

10. SCO

Change Disk controller in SCO 6.0.0

So today I tried to upgrade a customer from a Proliant with an HPSAS controller to an Intel server with a MEGASAS controller. First, I downloaded the megasas driver from SCO and installed it on the old system. Then I created a new Microlite Edge emergency boot cd with the new driver on it. I... (2 Replies)
Discussion started by: jgt
2 Replies

11. Shell Programming and Scripting

Telnet and Grep source file

Hi, I need a script to do the following: 1. Telnet into a remote power controller for the switch (done) 2. Find the power controller version. In order to do that my script should run grep and the keyword to search is "network" (need help) 3. Do a bunch of other stuff. Now, once... (4 Replies)
Discussion started by: puneet1984
4 Replies

12. AIX

replacing the battery from the controller in DS4300

Currently we have this DS4300 issue, we found that we have to replace the two batteries. Each from each controller. 1) When poweroff the DS4300, when taking out the battery, will this affect or clear out the saved configuration of the local settings ? 2) If no, is there any documentation thats... (2 Replies)
Discussion started by: wingcross
2 Replies

13. Solaris

Changed disk controller -> drops into GRUB?!

I changed disk controller. Unplugged every disk, inserted another controller card, an IBM M1015. The disks are recognized in BIOS, and the controller card's BIOS shows up. But after that, I drop into GRUB and a prompt. That is all. How shall I solve this problem? I am thinking of booting from... (2 Replies)
Discussion started by: kebabbert
2 Replies

14. Hardware

Storagetek 2540

Hi Guys and Gals, Wionder if you could help me, got a problem with a controller on a storagetek 2540, dead when fully powered up but if you reboot, it is ok for a couple of seconds (and you can ping it). Then once the array is fully up, it goes faulty and is un-pingable. Had anyone... (4 Replies)
Discussion started by: callmebob
4 Replies

15. SCO

How to change raid controller driver ? (hardware change)

Hello I'm trying to virtualize an instance of Sco Unix 5.0.5 in VirtualBox (called VM-A) , but sco I have problems set to launch with the new raid controller . The physical machine has a raid controller adaptec (alad driver) but VirtualBox uses buslogic (blc driver) What ... (3 Replies)
Discussion started by: flako
3 Replies