Skip to contentSkip to conversation

adjust_resource()

PATCH New Matthew Wilcox 1 participant 1 message Dec 18, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 adjust_resource()

Hi Linus.

I need something along these lines to cope with some devices on PA-RISC and Russell also needs something like it for PCMCIA. What do you think?

include/linux/ioport.h +2 -0
diff -urpNX dontdiff linus-2.6/include/linux/ioport.h parisc-2.6/include/linux/ioport.h
@@ -99,6 +99,8 @@ extern int allocate_resource(struct reso
 			     void (*alignf)(void *, struct resource *,
 					    unsigned long, unsigned long),
 			     void *alignf_data);
+int adjust_resource(struct resource *res, unsigned long start,
+		    unsigned long size);
 
 /* Convenience shorthand with allocation */
 #define request_region(start,n,name)	__request_region(&ioport_resource, (start), (n), (name))
kernel/resource.c +43 -0

49 lines not on this page · raw message

Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain