Commit Graph

38 Commits

Author SHA1 Message Date
proski
20bd7616c4 Fix Linux 2.4 compatibility, introduce variables for HAL file names
Add targets for both HAL binaries without $(obj), which is needed for
Linux 2.4 build system.  Keep targets with $(obj) for Linux 2.6.

Use $(HALBIN) for non-unmangled HAL and $(HALOBJ) for unmangled HAL.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3836 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-08-01 02:26:30 +00:00
proski
01eddadfb7 Split unmangling from uudecoding, don't unmangle in place
Conversions in place should be avoided in the build system because make
doesn't know if the conversion has taken place.  Use a different name
for HAL before unmangling.  Respect the build quietness settings.

Simplify Linux 2.4 rules so that the commands for decoding and
unmangling are written only once.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3815 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-23 21:15:34 +00:00
proski
e74121f314 Add printk priorities to ah_os.c
Reference: madwifi-dfs@3264


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3780 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 02:48:19 +00:00
mentor
03dbd3568d Make module loading and unloading much less noisy. I don't believe any of this ifnromation is particularly useful for dbeugging, and definitely not for operational use.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3742 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-21 14:40:43 +00:00
mentor
fbfef80115 Use POSIX preferred (and easier to read) $() form rather than ``
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3732 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-19 00:33:04 +00:00
mentor
f3a89f4353 Typo in CONFIG_PARISC. Guess PARISC users are a bit thin on the ground then.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3731 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-19 00:22:42 +00:00
kelmo
0a1bf29ca4 Fix format string bugs.
Closes: #1999


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3726 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-16 08:50:30 +00:00
proski
c47c360b48 Be very careful about using ioread32be() and iowrite32()
They appeared:
- in generic code and PARISC - in 2.6.12
- in PPC64 - in 2.6.14
- in merged PowerPC - in 2.6.15 (when the merge occurred)
- in MIPS - in 2.6.21

Improve comments and indentation, as the logic is getting more complex.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3712 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-08 01:28:58 +00:00
mentor
76cade5dac Make pointer declarations and casting consistent. Some other formatting changes are made in passing
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3710 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-06 20:32:29 +00:00
proski
1b5e6019b1 Don't show comments while compiling
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3707 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-06 05:39:54 +00:00
proski
798e0eb3fb Registers between 0x7000 and 0x8000 are always little-endian
According to FreeBSD changelog, this area is present in 5416 and newer
and must be byteswapped on big-endian systems.  Testing confirms it.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3701 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-05 07:22:51 +00:00
proski
8c141cdc58 Reapply r3402 (ARM compile fix), it was reverted by mistake
This should fix compilation on little-endian ARM and possibly other
platforms with little or no optimization.  This closes #1783.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3700 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-05 07:13:41 +00:00
kelmo
4b2cf1393a Remove modules.order files in Makefile clean targets.
Remove kbuild by-products in regression/Makefile. Also allow
regression/tkip/test_tkip.c to compile (too few arguments to function
ieee80211_crypto_demic).

Closes: #1973


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3699 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-04 12:25:31 +00:00
mentor
2cb3887369 Add lots of .PHONY to Makefiles and remove a duplicate rule definition
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3678 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-23 03:49:25 +00:00
proski
78731b81b8 Compile ath_hal_reg_write() and ath_hal_reg_read() only if needed
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3664 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-22 12:39:24 +00:00
mentor
6abd8285aa Whitespace for control statements
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3627 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-14 19:11:57 +00:00
proski
1941f3990b Add $(obj)/ to the dependencies of ath_hal.o
Otherwise, $(TARGET).hal.o is not built for Linux 2.4 kernels.  The rule
for ath_hal.o is for Linux 2.4 only and should not affect Linux 2.6
builds.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3604 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-05 12:05:10 +00:00
proski
2913278884 Adjust build system for Linux 2.6.26
During the second stage of the module build, Linux 2.6.26 does not
define $(obj).  Try using $(SUBDIRS) as $(obj) before falling back to
the current directory.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3603 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-05 02:00:56 +00:00
mentor
658d470ad5 Revert now unnecessary compile fix for INITIAL_JIFFIES - r3598. The other code using this define looked like it should not be using it too.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3601 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-05 01:02:51 +00:00
mentor
63436cbc14 Kill dead uptime calculating code; not needed in a driver...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3600 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-05 01:00:11 +00:00
proski
9230ae95d4 Fix Linux 2.4 compatibility
Filter out harmful options from OBJCOPY.  Linux 2.4 adds "-O binary" and
"-S" for i386 and x86_64, which would break the build.

Use $(TOP) in hal_unmangle.objcopy path.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3599 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-04 23:30:34 +00:00
proski
370c06ca3a Define INITIAL_JIFFIES if not already defined
Normally, compatibility issues should be addressed in compat.h, but
INITIAL_JIFFIES is not something that should be widely used.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3598 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-04 23:11:21 +00:00
mentor
ef6d84125b Convert as many things as possible to use kzalloc
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3573 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-24 14:10:42 +00:00
mtaylor
8ec7d856b1 Add casts to force register addresses to stay 32-bits on 64-bit architectures.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3545 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-15 07:44:58 +00:00
mtaylor
3f2f68b9c5 Fix register name checks, name is a local array and will never be null, even when the contents are empty string / NULL.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3538 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-11 04:24:53 +00:00
mtaylor
a78d83bb0d Debugging function cleanup:
1) Move all debug preprocessor flags out into make files
2) Add support for remaining preprocessor flags to be set by ENV variables
3) Add support for HAL tracing to include device name



git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3481 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-09 19:55:49 +00:00
proski
545cf26ad4 Don't rely on the compiler optimizing out iowrite32be and ioread32be
Use a separate set of _OS_REG_WRITE and _OS_REG_READ macros for
little-endian systems.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3402 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-22 06:13:08 +00:00
proski
89f9f3ed2a Allow ARCH to be set to "x86". That's what it is in Linux 2.6.24 for
both i386 and x86_64.  When calculating TARGET for x86 platform, use
CONFIG_X86 and CONFIG_X86_64 rather than ARCH.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3318 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-31 22:48:42 +00:00
mtaylor
c2bce77197 Merge madwifi-dfs branch to trunk.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3268 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-26 20:48:11 +00:00
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