* ioport.h fixed in 2.2.22
@ 2002-11-10 13:07 Paolo Pumilia
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Pumilia @ 2002-11-10 13:07 UTC (permalink / raw)
To: linux-laptop, linux-config, netdev
[-- Attachment #1: Type: text/plain, Size: 454 bytes --]
In order to compile 3.1.28 pcmcia modules (package pcmcia-cs-3.1.28),
commenting out lines referring to compatibility to kernel 2.4
in file: include/linux/ioport.h, in kernel-source 2.2.22 has been
required,
Here enclosed is my fixed file.
Being just a newbie, i hope it has been the right action to take.
Thank you
--
Paolo Pumilia
AICA- OpenSource workgroup
AICA OpenSource WorkGroup Coordinator
Website: http//www.linfe.it/AICA-OpenSource
[-- Attachment #2: v2.2.22-fixed-ioport.h --]
[-- Type: text/x-chdr, Size: 1732 bytes --]
/* file: /home/src/kernel-source-2.2.22/include/linux/ioport.h
* modified in order to allow pcmcia modules compilation
* Paolo Pumilia, nov 10, 2002 - paolo.pumilia@acm.org
*/
/*
* portio.h Definitions of routines for detecting, reserving and
* allocating system resources.
*
* Version: 0.01 8/30/93
*
* Author: Donald Becker (becker@super.org)
*/
#ifndef _LINUX_PORTIO_H
#define _LINUX_PORTIO_H
#define HAVE_PORTRESERVE
/*
* Call check_region() before probing for your hardware.
* Once you have found you hardware, register it with request_region().
* If you unload the driver, use release_region to free ports.
*/
extern void reserve_setup(char *str, int *ints);
extern int check_region(unsigned long from, unsigned long extent);
extern void request_region(unsigned long from, unsigned long extent,const char *name);
extern void release_region(unsigned long from, unsigned long extent);
extern int get_ioport_list(char *);
#ifdef __sparc__
extern unsigned long occupy_region(unsigned long base, unsigned long end,
unsigned long num, unsigned int align,
const char *name);
#endif
#define HAVE_AUTOIRQ
extern void autoirq_setup(int waittime);
extern int autoirq_report(int waittime);
/*
* for compatibility with 2.4
*/
/* commented out, in order to allow pcmcia modules compilation
* Paolo Pumilia, nov 10, 2002 - paolo.pumilia@acm.org
*
* extern inline int check_mem_region(unsigned long from, unsigned long extent)
* {
* return 0;
* }
*
* extern inline void request_mem_region(unsigned long from, unsigned long extent,const char *name)
* {
* }
*
* extern inline void release_mem_region(unsigned long from, unsigned long extent)
* {
* }
*/
#endif /* _LINUX_PORTIO_H */
^ permalink raw reply [flat|nested] 2+ messages in thread* ioport.h fixed in 2.2.22
@ 2002-11-10 13:00 Paolo Pumilia
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Pumilia @ 2002-11-10 13:00 UTC (permalink / raw)
To: netdev
[-- Attachment #1: Type: text/plain, Size: 453 bytes --]
In order to compile 3.1.28 pcmcia modules (package pcmcia-cs-3.1.28),
commenting out lines referring to compatibility to kernel 2.4
in file: include/linux/ioport.h, in kernel-source 2.2.22 has been
required,
Here enclosed is my fixed file.
Being just a newbie, i hope it has been the right action to take.
Thank you
--
Paolo Pumilia
AICA- OpenSource workgroup
AICA OpenSource WorkGroup Coordinator
Website: http//www.linfe.it/AICA-OpenSource
[-- Attachment #2: v2.2.22-fixed-ioport.h --]
[-- Type: text/x-chdr, Size: 1732 bytes --]
/* file: /home/src/kernel-source-2.2.22/include/linux/ioport.h
* modified in order to allow pcmcia modules compilation
* Paolo Pumilia, nov 10, 2002 - paolo.pumilia@acm.org
*/
/*
* portio.h Definitions of routines for detecting, reserving and
* allocating system resources.
*
* Version: 0.01 8/30/93
*
* Author: Donald Becker (becker@super.org)
*/
#ifndef _LINUX_PORTIO_H
#define _LINUX_PORTIO_H
#define HAVE_PORTRESERVE
/*
* Call check_region() before probing for your hardware.
* Once you have found you hardware, register it with request_region().
* If you unload the driver, use release_region to free ports.
*/
extern void reserve_setup(char *str, int *ints);
extern int check_region(unsigned long from, unsigned long extent);
extern void request_region(unsigned long from, unsigned long extent,const char *name);
extern void release_region(unsigned long from, unsigned long extent);
extern int get_ioport_list(char *);
#ifdef __sparc__
extern unsigned long occupy_region(unsigned long base, unsigned long end,
unsigned long num, unsigned int align,
const char *name);
#endif
#define HAVE_AUTOIRQ
extern void autoirq_setup(int waittime);
extern int autoirq_report(int waittime);
/*
* for compatibility with 2.4
*/
/* commented out, in order to allow pcmcia modules compilation
* Paolo Pumilia, nov 10, 2002 - paolo.pumilia@acm.org
*
* extern inline int check_mem_region(unsigned long from, unsigned long extent)
* {
* return 0;
* }
*
* extern inline void request_mem_region(unsigned long from, unsigned long extent,const char *name)
* {
* }
*
* extern inline void release_mem_region(unsigned long from, unsigned long extent)
* {
* }
*/
#endif /* _LINUX_PORTIO_H */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-10 13:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-10 13:07 ioport.h fixed in 2.2.22 Paolo Pumilia
-- strict thread matches above, loose matches on Subject: below --
2002-11-10 13:00 Paolo Pumilia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).