Messages in this thread | | | Date | Tue, 30 Jun 2009 08:32:30 +0200 | From | Pavel Machek <> | Subject | Re: [PATCH 2/9] x86: introduce a set of platform feature flags |
| |
> +#define X86_PLATFORM_FEATURE_FLOPPY (0*32+5) /* ISA floppy */ > +#define X86_PLATFORM_FEATURE_ISA (0*32+6) /* ISA/LPC bus */ > +#define X86_PLATFORM_FEATURE_BIOS (0*32+7) /* BIOS service, > + * e.g. int calls > + * EBDA, etc. > + */ > +#define X86_PLATFORM_FEATURE_ACPI (0*32+8) /* has ACPI support */ > +#define X86_PLATFORM_FEATURE_SFI (0*32+9) /* has SFI support */ > +#define X86_PLATFORM_FEATURE_8042 (0*32+10) /* i8042 KBC */ > + > +extern __u32 platform_feature[N_PLATFORM_CAPINTS]; > +extern const char *const > + x86_platform_available_feature[N_PLATFORM_CAPINTS * 32]; > +#define platform_has(bit) \ > + test_bit(bit, (unsigned long *)platform_feature)
test_bit and friends imply synchronization you probably don't want or need...
-- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
| |