Yes, on Solaris 5.6 it's in
usr/include/sys/ddi.h
and it says
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
...
/*
* Copyright (c) 1996 Sun Microsystems, Inc.
* All Rights Reserved.
*/
so one is not at liberty to spread it round, either. Sorry. That's just the
way code used to be written I'm afraid.
It declares various structures for major and minor devices using #ifdefs,
pretty much in the manner NOT recommended for Linux device driver writing if
I remember Jens' talk rightly.
We shouldn't use it for Linux projects.
Cheers,
Jill.
___________________________________________
Jill Rowling
Senior Design Engineer & Unix System Administrator
Electronic Engineering Department, Aristocrat Leisure Industries
3rd Floor, 77 Dunning Ave Rosebery NSW 2018
Phone: (02) 9697-4484 Fax: (02) 9663-1412
Email: [EMAIL PROTECTED]
> -----Original Message-----
> From: Peter Samuel [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, March 10, 2000 11:56 AM
> To: Adrian Chiang
> Cc: [EMAIL PROTECTED]
> Subject: Re: [SLUG] #include <sys/ddi.h>
>
> On Fri, 10 Mar 2000, Adrian Chiang wrote:
>
> >
> > Hi Sluggers,
> >
> > I am trying to compile a c' program written for soloaris
> > on a Linux system. But I get stuck when gcc the program,
> > it's missing the include file ddi.h.
> >
> > I did a "find" for the file from / but no where to be found.
> >
> > Anyone know where to get this header file & what it is?
> >
> > I am running Mandrake 7.0 w default kernel 2.2.14
>
> And the program you're trying to compile is?....
>
> /usr/include/sys/ddi.h on Solaris is a header file used when building
> device drivers - it's the Device Driver Interface include file. Given
> that the kernels on Linux and Solaris are "different", then I wouldn't
> expect a device driver for a Solaris system to compile out of the box
> on a Linux system.
>
> To port it, you'll need to do some serious work and probably have
> knowledge of some parts (at least) of how the kernel works.
>
> Regards
> Peter
> ----------
> Peter Samuel [EMAIL PROTECTED]
> Technical Consultant or at present:
> eServ. Pty Ltd [EMAIL PROTECTED]
> Phone: +61 2 9206 3410 Fax: +61 2 9281 1301
>
> "If you kill all your unhappy customers, you'll only have happy ones left"
>
> --
> SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> To unsubscribe send email to [EMAIL PROTECTED] with
> unsubscribe in the text
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text