Messages in this thread | | | Subject | patch for include/linux/agpgart.h | Date | Thu, 19 Oct 2000 09:59:47 -0700 (PDT) | From | (Philip Brown) |
| |
I dont see an appropriate section in the MAINTAINERS file of 2.4test9 for AGP stuff, so I'm submitting this patch to you folks.
Once you read the patch, you might wonder "why the hell is he submitting this patch to linux?" :-) But agpgart is being used as one of the primary components for the "cross-platform" xfree DRI effort. So the header file should be usable across multiple platforms, to maximize portability.
*** agpgart.h Thu Oct 19 09:49:04 2000 --- newagpgart.h Thu Oct 19 09:49:58 2000 *************** *** 50,58 **** #endif #ifndef __KERNEL__ ! #include <linux/types.h> ! #include <asm/types.h> typedef struct _agp_version { __u16 major; __u16 minor; --- 50,70 ---- #endif #ifndef __KERNEL__ ! #ifdef __linux__ ! # include <linux/types.h> ! # include <asm/types.h> ! #endif + #ifdef __sun__ + #include <sys/types.h> + typedef uint8_t __u8; + typedef uint16_t __u16; + typedef uint32_t __u32; + + #endif + + + typedef struct _agp_version { __u16 major; __u16 minor; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |