[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::axp-developer

Title:Alpha Developer Support
Notice:[email protected], 800-332-4786
Moderator:HYDRA::SYSTEM
Created:Mon Jun 06 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3722
Total number of notes:11359

3704.0. "Systemintegrering AB - Point 29440" by KZIN::ASAP () Wed Jun 04 1997 04:39

    Company Name :  Systemintegrering AB - Point 29440
    Contact Name :  Hans Holm
    Phone        :  00.46.8.98.23.00
    Fax          :  00.46.8.98.31.98
    Email        :  [email protected]
    Date/Time in :   2-JUN-1997 08:43:18
    Entered by   :  Helen Pratt
    SPE center   :  REO

    Category     :  unix
    OS Version   :  v4
    System H/W   :  AlphaStation 255


    Brief Description of Problem:
    -----------------------------

From:	RDGENG::MRGATE::"RDGMTS::PMDF::mail.dec.com::AllenRich" 29-MAY-1997
09:17:36.82
To:	RDGENG::ASAP
CC:	
Subj:	29440, Systemintegrering AB

From:	NAME: Richard Allen <[email protected]@PMDF@INTERNET>
To:	NAME: '[email protected]'
<IMCEAX400-c=US+3Ba=+20+3Bp=DIGITAL+3Bo=SBUEURMFG+3Bdda+3ASMTP=asap+40reo+2Emts+
[email protected]@PMDF@INTERNET>

Hello - 

POINT Log Number	 29440
Company Name 	Systemintegrering AB
Engineers name	Hans Holm
Telephone Number 	00.46.8.98.23.00
Fax Number		00.46.8.98.31.98
E-mail Address	[email protected]

Operating System, Version	UNIX 4.0
Platform			AlphaStation 255

Problem Statement	
	
My name is Hans Holm. I am working in the Swedish company 
Systemintegrering AB, ASAP Username A70100.

I  just now tries to port a Lynx Unix system driver software module 
to a platform w. Alpha Station 255 and DEC UNIX 4.0.

The hardware board that this driver shall work w. is placed in a ISA 
bus position.

Two  of the problems i can't solve by my-self  are:

1.  The select system call driver support functionallity.
     Can you give me an example driver source module implementing 
     this in the DEC UNIX kernel or inform me which functions that 
     must be used to implement this. 
     We want that the driver interrupt routine should make 
     the select system call to return in the application process.

     The Lynx UNIX driver module uses semaphores and pointers to them  
     delivered to the driver's select function. 

2.  Are there any semaphore functionallity for driver software to use 
     in DEC UNIX 4.0 kernel.

Regards,

Richard

In replying, please use [email protected]



RFC-822-headers:
Received: from reoexc1.reo.dec.com by rg71rw.reo.dec.com (PMDF V5.0-7 #15552)
 id <[email protected]> for [email protected]; Thu,
 29 May 1997 09:06:21 +0100
Received: by reoexc1.reo.dec.com with SMTP
 (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63)
 id <[email protected]>; Thu, 29 May 1997 09:07:44 +0100
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63
T.RTitleUserPersonal
Name
DateLines
3704.1Requested more infoRDGENG::PRATTHThu Jun 05 1997 04:267
    
    
    I mailed Hans yesterday requesting more information on what sort of
    device driver they are trying to port.
    
    Helen.
    
3704.2Separate calls about the same/related issue..MUFFIT::helenHelen PrattThu Jun 05 1997 07:5959

This call is getting a little confusing.  Hans has logged 3 separate calls
over the last week all about the same/related problem and cross referencing
them.  The point numbers are:

	29440 - The base note.
	29679 - This was handled by Galway.
	30139 - A new one which I'll post here.

Hello,

In the book "Writing EISA and ISA Bus Device Drivers" number
 AA-Q0R6C_TE, March 1996 Product Version Digital UNIX version 4.0 or
 higher.
Chapter 2 EISA/ISA Bus Architectures, and 2.1 ISA Devices you read
 following " To support the  same device on the ISA bus, you MUST:
        . Make sure the isa_option data table that resides in the
           /usr/sys/data/isa_option_data.c file contains ....."

BUT when I open and read this file following warning text is
 displayed before my eyes:

/*************************** Warning!!!************************************/
/**/
 /*    This table is not used to support device drivers in the 4.0         =
 */
 /*    release. It exists as a Notbinary entry in the alpha/files file     =
 */
 /*   for the 4.0 release in order to support older device driver kits.   */
 /*    It will be made Notbinary and remain in the kernel build in the     =
 */
 /*    5.0 release at the descression of the individual bus developers.    =
 */
 /*
    */
/*********************************************************************
*****/  WHAT MEANS????

As I mentioned in my query, no 29679, it is a problem for us to
 dynamically configure my driver, you got the print outs from
 "sysconfig" command earlier.
 In the answer from you you talk about a customer writing this driver.
 This answer I don't understand we are writing this driver our selves.
In the print out mentioned above one line content is that the
 "/subsys/TMB16.mod" can't be found.
But reading the "Writing Device Drivers: Tutorial" No AA-PUBVD-TE
 March 1996 Product Version: Digital UNIX Version 4.0 or higer nothing
 is written that I should put anything in this directory. BUT reading
 the "Programmer's Guide" No AA-PS30D-TE March 1996 Product Version:
 Digital UNIX Version 4.0 or higher, Appendix C.5, It is written that
 I should copy my module to the "/subsys"  directory. Which book
 should I follow or it is something else I can't follow here.

 Please help me
             Hans.      ASAP No A70100.


	
3704.3Answer for 2nd part of 30139MUFFIT::helenHelen PrattThu Jun 05 1997 09:4622
I have sent the following to Hans with regard to the second part of his
second point:

>>But reading the "Writing Device Drivers: Tutorial" No AA-PUBVD-TE=20
>> March 1996 Product Version: Digital UNIX Version 4.0 or higer nothing=20
>> is written that I should put anything in this directory. BUT reading=20
>> the "Programmer's Guide" No AA-PS30D-TE March 1996 Product Version:=20
>> Digital UNIX Version 4.0 or higher, Appendix C.5, It is written that=20
>> I should copy my module to the "/subsys"  directory. Which book=20
>> should I follow or it is something else I can't follow here.

You have two options:
        1. Copy your module to the /subsys directory.
        2. Create a soft link in the /subsys directory to your module.

This information is documented in sections on configuring a dynamic 
device.  For information on this refer to Section 14.3.1 "Step 1: Link
to the Single Binary Module" in the Writing Device Driver Tutorial.



Helen.
3704.4Reply from HansMUFFIT::helenHelen PrattFri Jun 06 1997 04:2020
I've recieved the following reply from Hans:

Hi Helen,

Sorry If I am too pedantic, but in the tutorial 14.3.1 Step 1 they 
write "/var/subsys" and not "/subsys" that the "sysconfig" command 
expected. I have of course already corrected my soft links so this was not 
the main question in query 30139. It is the one you still are 
investigating. My module is still not possible to install(configure) 
dynamically into the kernel.

Query 29440 I probably still need your answer from. Perhaps my "work 
around" is working but as long as I can't install the module I can't 
test it. An example C-source module from an ISA driver should be most 
welcome.

Yours gratefully,

Hans

3704.5Looking for sample isa driverMUFFIT::helenHelen PrattFri Jun 06 1997 05:4742
I've just sent the following to Hans:

Hi Hans,

Thanks for your mail.

There are two different ways to dynamically load device drivers in Digital
UNIX V4.0.  The first involves adding an entry to the isa_option_data.c
file and the second involves adding a line to the /etc/sysconfigtab
file.

Adding an entry to the isa_option_data.c is the old method of doing this
and will not be supported in a future version of Digital UNIX - hence
the warning comment in the file.

Adding a entry to the /etc/sysconfigtab file for your device driver is
the recommended approach.  A sample entry for an ISA device would
look something like the following (note that it all needs to be on
one continuous line):

        ISA_Option =  Board_Id - Null, Function_Name - 'KBD,MOUSE',
    Driver_Name - gpc, Int_Aft_Attach - 1, Type - C, Adpt_Config - N


>> Query 29440 I probably still need your answer from. Perhaps my "work
>> around" is working but as long as I can't install the module I can't
>> test it. An example C-source module from an ISA driver should be most
>> welcome.

I'm still trying to track down an ISA driver sample...

Let me know how if the above helps,

regards,

Helen.

ps.  If you continue to have problemswith the load, can you send me an 
update of the output your get from sysconfig, when you attempt to load 
the driver?