OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../hotplug++/hotplug++-linux-2.6.18-no-isapnp-header.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./bin/isapnp-match.hh.orig 2006-09-29 14:36:49.000000000 +0200
  17. +++ ./bin/isapnp-match.hh 2006-09-29 14:45:10.000000000 +0200
  18. @@ -2,8 +2,19 @@
  19. #include <vector>
  20. #include <match.hh>
  21. +/*
  22. + if we use the sanitized linux headers >= 2.6.18 we will not have isapnp.h
  23. + so we have to define ISAPNP_VENDOR and ISAPNP_DEVICE by ourself.
  24. + */
  25. +#define ISAPNP_VENDOR(a,b,c) (((((a)-'A'+1)&0x3f)<<2)|\
  26. + ((((b)-'A'+1)&0x18)>>3)|((((b)-'A'+1)&7)<<13)|\
  27. + ((((c)-'A'+1)&0x1f)<<8))
  28. +#define ISAPNP_DEVICE(x) ((((x)&0xf000)>>8)|\
  29. + (((x)&0x0f00)>>8)|\
  30. + (((x)&0x00f0)<<8)|\
  31. + (((x)&0x000f)<<8))
  32. +
  33. #define ISAPNP_CARD_DEVS 8
  34. -#include <linux/isapnp.h>
  35. class isapnp_module {
  36. public: