Commit Graph

9 Commits

Author SHA1 Message Date
proski a992820b57 Streamline _OS_REG_WRITE/_OS_REG_READ implementation
Use a new is_reg_le macro to determine whether the register points to a
little-endian area.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2933 0192ed92-7a03-0410-a25b-9323aeb14dbd
2007-11-23 09:38:18 +00:00
proski 9a8cf27ead Provide replacements for iowrite32be and ioread32be if needed
The architectures that don't set CONFIG_GENERIC_IOMAP are supposed to
provide replacements for functions in lib/iomap.c, but not all provide
iowrite32be() and ioread32be().

Only MIPS, PARISC and PowerPC implement iowrite32be and ioread32be as
functions, while SH and AVR32 provide macros.  Other architectures, in
particular ARM, provide no replacement at all.

This should fix ticket #1539.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2932 0192ed92-7a03-0410-a25b-9323aeb14dbd
2007-11-23 09:28:21 +00:00
proski 62ca1ef3ab Re-format, rewrite some comments, fix typos
Fix inconsistent formatting of the comments.  Fix the text along the
way.  Run the file through madwifi-indent, but undo some overzealous
formatting.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2931 0192ed92-7a03-0410-a25b-9323aeb14dbd
2007-11-23 07:50:33 +00:00
mtaylor e4dc719a3c Add labs macro
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2876 0192ed92-7a03-0410-a25b-9323aeb14dbd
2007-11-21 08:31:35 +00:00
mentor a068895300 Revert r2852 as it uses the incorrect method to access IO memory and breaks on many archs.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2854 0192ed92-7a03-0410-a25b-9323aeb14dbd
2007-11-15 16:32:01 +00:00
proski 035de65235 Revert commits 2623:2624, they break archs without iowrite32be()
This fixes ticket #1539


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2852 0192ed92-7a03-0410-a25b-9323aeb14dbd
2007-11-15 03:29:11 +00:00
scottr d07ba1953d Install modules with mode set to 0644 instead of 0755.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2834 0192ed92-7a03-0410-a25b-9323aeb14dbd
2007-11-06 00:41:19 +00:00
proski 120d309bc3 Fix sysctl support in Linux 2.6.24
Linux 2.6.24 introduces a sysctl checker that disallows using arbitrary
ctl_name values for sysctl entries.  The entries with non-standard
values should set ctl_name to CTL_UNNUMBERED.

On the other hand, using consistent non-zero ctl_name values is required
for older kernels (tested on Linux 2.4.33.3 from Slackware 11).

Thus the solution is to use CTL_UNNUMBERED on Linux 2.6.24+ and the
original values in the older kernels.  Move CTL_AUTO and DEV_ATH to
include/compat.h and define them correspondingly.

When copying sysctl entries, check procname for being non-zero, since
ctl_name is zero (CTL_UNNUMBERED) on Linux 2.6.24 and newer.

For the same reason, don't use ctl_name to distinguish entries in
ath_sysctl_template, use extra2 instead.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2814 0192ed92-7a03-0410-a25b-9323aeb14dbd
2007-10-31 05:39:41 +00:00
mrenzmann 2c0d8db912 Restructuring the repository layout in response to ath5k.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2721 0192ed92-7a03-0410-a25b-9323aeb14dbd
2007-10-04 13:07:51 +00:00