* [PATCH 2.5.60 1/9] Add rename_region().
@ 2003-02-14 23:43 Bob Miller
2003-02-14 23:50 ` Bob Miller
0 siblings, 1 reply; 2+ messages in thread
From: Bob Miller @ 2003-02-14 23:43 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
Some devices need to call request_region() to reserve io ports before they know
the exact name needed (i.e: parport0). The new rename_region() method allows
the name to be replaced after the real name is known.
--
Bob Miller Email: rem@osdl.org
Open Source Development Lab Phone: 503.626.2455 Ext. 17
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.5.60 1/9] Add rename_region().
2003-02-14 23:43 [PATCH 2.5.60 1/9] Add rename_region() Bob Miller
@ 2003-02-14 23:50 ` Bob Miller
0 siblings, 0 replies; 2+ messages in thread
From: Bob Miller @ 2003-02-14 23:50 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
On Fri, Feb 14, 2003 at 03:43:49PM -0800, Bob Miller wrote:
> Some devices need to call request_region() to reserve io ports before they know
> the exact name needed (i.e: parport0). The new rename_region() method allows
> the name to be replaced after the real name is known.
>
> --
> Bob Miller Email: rem@osdl.org
> Open Source Development Lab Phone: 503.626.2455 Ext. 17
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
Sorry forgot the diff...
--
Bob Miller Email: rem@osdl.org
Open Source Development Lab Phone: 503.626.2455 Ext. 17
:r /tmp/parport.patch.all
diff -Nru a/include/linux/ioport.h b/include/linux/ioport.h
--- a/include/linux/ioport.h Fri Feb 14 09:50:44 2003
+++ b/include/linux/ioport.h Fri Feb 14 09:50:44 2003
@@ -107,6 +107,7 @@
#define release_region(start,n) __release_region(&ioport_resource, (start), (n))
#define check_mem_region(start,n) __check_region(&iomem_resource, (start), (n))
#define release_mem_region(start,n) __release_region(&iomem_resource, (start), (n))
+#define rename_region(resource, n) (resource)->name = (n);
extern int __deprecated __check_region(struct resource *, unsigned long, unsigned long);
extern void __release_region(struct resource *, unsigned long, unsigned long);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-14 23:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-14 23:43 [PATCH 2.5.60 1/9] Add rename_region() Bob Miller
2003-02-14 23:50 ` Bob Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®