Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74841
b: refs/heads/master
c: ad40e68
h: refs/heads/master
i:
  74839: 1d13d19
v: v3
  • Loading branch information
Andrey Borzenkov authored and Len Brown committed Dec 7, 2007
1 parent 8e36d7b commit 482760a
Show file tree
Hide file tree
Showing 229 changed files with 3,783 additions and 5,284 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6790acb14d264d874ff8cbae1a72e72883ec3678
refs/heads/master: ad40e68bf5c54831cd6b2199fd24d616bac179f7
45 changes: 41 additions & 4 deletions trunk/Documentation/i2c/summary
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
This is an explanation of what i2c is, and what is supported in this package.

I2C and SMBus
=============

Expand Down Expand Up @@ -31,17 +33,52 @@ When we talk about I2C, we use the following terms:
Client

An Algorithm driver contains general code that can be used for a whole class
of I2C adapters. Each specific adapter driver either depends on one algorithm
driver, or includes its own implementation.
of I2C adapters. Each specific adapter driver depends on one algorithm
driver.

A Driver driver (yes, this sounds ridiculous, sorry) contains the general
code to access some type of device. Each detected device gets its own
data in the Client structure. Usually, Driver and Client are more closely
integrated than Algorithm and Adapter.

For a given configuration, you will need a driver for your I2C bus, and
drivers for your I2C devices (usually one driver for each device).
For a given configuration, you will need a driver for your I2C bus (usually
a separate Adapter and Algorithm driver), and drivers for your I2C devices
(usually one driver for each device). There are no I2C device drivers
in this package. See the lm_sensors project http://www.lm-sensors.nu
for device drivers.

At this time, Linux only operates I2C (or SMBus) in master mode; you can't
use these APIs to make a Linux system behave as a slave/device, either to
speak a custom protocol or to emulate some other device.


Included Bus Drivers
====================
Note that only stable drivers are patched into the kernel by 'mkpatch'.


Base modules
------------

i2c-core: The basic I2C code, including the /proc/bus/i2c* interface
i2c-dev: The /dev/i2c-* interface
i2c-proc: The /proc/sys/dev/sensors interface for device (client) drivers

Algorithm drivers
-----------------

i2c-algo-bit: A bit-banging algorithm
i2c-algo-pcf: A PCF 8584 style algorithm
i2c-algo-ibm_ocp: An algorithm for the I2C device in IBM 4xx processors (NOT BUILT BY DEFAULT)

Adapter drivers
---------------

i2c-elektor: Elektor ISA card (uses i2c-algo-pcf)
i2c-elv: ELV parallel port adapter (uses i2c-algo-bit)
i2c-pcf-epp: PCF8584 on a EPP parallel port (uses i2c-algo-pcf) (NOT mkpatched)
i2c-philips-par: Philips style parallel port adapter (uses i2c-algo-bit)
i2c-adap-ibm_ocp: IBM 4xx processor I2C device (uses i2c-algo-ibm_ocp) (NOT BUILT BY DEFAULT)
i2c-pport: Primitive parallel port adapter (uses i2c-algo-bit)
i2c-velleman: Velleman K8000 parallel port adapter (uses i2c-algo-bit)

29 changes: 2 additions & 27 deletions trunk/Documentation/networking/bonding.txt
Original file line number Diff line number Diff line change
Expand Up @@ -554,30 +554,6 @@ xmit_hash_policy

This algorithm is 802.3ad compliant.

layer2+3

This policy uses a combination of layer2 and layer3
protocol information to generate the hash.

Uses XOR of hardware MAC addresses and IP addresses to
generate the hash. The formula is

(((source IP XOR dest IP) AND 0xffff) XOR
( source MAC XOR destination MAC ))
modulo slave count

This algorithm will place all traffic to a particular
network peer on the same slave. For non-IP traffic,
the formula is the same as for the layer2 transmit
hash policy.

This policy is intended to provide a more balanced
distribution of traffic than layer2 alone, especially
in environments where a layer3 gateway device is
required to reach most destinations.

This algorithm is 802.3ad complient.

layer3+4

This policy uses upper layer protocol information,
Expand Down Expand Up @@ -613,9 +589,8 @@ xmit_hash_policy
or may not tolerate this noncompliance.

The default value is layer2. This option was added in bonding
version 2.6.3. In earlier versions of bonding, this parameter
does not exist, and the layer2 policy is the only policy. The
layer2+3 value was added for bonding version 3.2.2.
version 2.6.3. In earlier versions of bonding, this parameter does
not exist, and the layer2 policy is the only policy.


3. Configuring Bonding Devices
Expand Down
19 changes: 15 additions & 4 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ S: Status, one of the following:
P: Mike Phillips
M: mikep@linuxtr.net
L: netdev@vger.kernel.org
L: linux-tr@linuxtr.net
W: http://www.linuxtr.net
S: Maintained

Expand Down Expand Up @@ -166,6 +167,7 @@ S: Maintained

A2232 SERIAL BOARD DRIVER
P: Enver Haase
M: ehaase@inf.fu-berlin.de
M: A2232@gmx.net
L: linux-m68k@lists.linux-m68k.org
S: Maintained
Expand Down Expand Up @@ -437,7 +439,7 @@ S: Maintained

ARM/ATMEL AT91RM9200 ARM ARCHITECTURE
P: Andrew Victor
M: andrew@sanpeople.com
M: linux@maxim.org.za
L: linux-arm-kernel@lists.arm.linux.org.uk (subscribers-only)
W: http://maxim.org.za/at91_26.html
S: Maintained
Expand Down Expand Up @@ -2062,7 +2064,7 @@ S: Maintained
IOC3 SERIAL DRIVER
P: Pat Gefre
M: pfg@sgi.com
L: linux-mips@linux-mips.org
L: linux-kernel@linux-mips.org
S: Maintained

IP MASQUERADING:
Expand Down Expand Up @@ -2813,6 +2815,7 @@ M: p2@ace.ulyssis.student.kuleuven.ac.be
P: Mike Phillips
M: mikep@linuxtr.net
L: netdev@vger.kernel.org
L: linux-tr@linuxtr.net
W: http://www.linuxtr.net
S: Maintained

Expand Down Expand Up @@ -2950,7 +2953,7 @@ S: Supported
PCMCIA SUBSYSTEM
P: Linux PCMCIA Team
L: linux-pcmcia@lists.infradead.org
W: http://lists.infradead.org/mailman/listinfo/linux-pcmcia
L: http://lists.infradead.org/mailman/listinfo/linux-pcmcia
T: git kernel.org:/pub/scm/linux/kernel/git/brodo/pcmcia-2.6.git
S: Maintained

Expand Down Expand Up @@ -3728,6 +3731,7 @@ TOKEN-RING NETWORK DRIVER
P: Mike Phillips
M: mikep@linuxtr.net
L: netdev@vger.kernel.org
L: linux-tr@linuxtr.net
W: http://www.linuxtr.net
S: Maintained

Expand Down Expand Up @@ -4045,7 +4049,7 @@ S: Maintained

USER-MODE LINUX
P: Jeff Dike
M: jdike@addtoit.com
M: jdike@karaya.com
L: user-mode-linux-devel@lists.sourceforge.net
L: user-mode-linux-user@lists.sourceforge.net
W: http://user-mode-linux.sourceforge.net
Expand Down Expand Up @@ -4276,6 +4280,13 @@ L: mjpeg-users@lists.sourceforge.net
W: http://mjpeg.sourceforge.net/driver-zoran/
S: Maintained

ZR36120 VIDEO FOR LINUX DRIVER
P: Pauline Middelink
M: middelin@polyware.nl
W: http://www.polyware.nl/~middelin/En/hobbies.html
W: http://www.polyware.nl/~middelin/hobbies.html
S: Maintained

ZS DECSTATION Z85C30 SERIAL DRIVER
P: Maciej W. Rozycki
M: macro@linux-mips.org
Expand Down
16 changes: 9 additions & 7 deletions trunk/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 24
EXTRAVERSION = -rc5
EXTRAVERSION = -rc4
NAME = Arr Matey! A Hairy Bilge Rat!

# *DOCUMENTATION*
Expand Down Expand Up @@ -108,20 +108,20 @@ endif
PHONY := _all
_all:

# Cancel implicit rules on top Makefile
$(CURDIR)/Makefile Makefile: ;

ifneq ($(KBUILD_OUTPUT),)
# Invoke a second make in the output directory, passing relevant variables
# check that the output directory actually exists
saved-output := $(KBUILD_OUTPUT)
KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd)
$(if $(KBUILD_OUTPUT),, \
$(error output directory "$(saved-output)" does not exist))
# Check that OUTPUT directory is not the same as where we have kernel src
$(if $(filter-out $(KBUILD_OUTPUT),$(shell /bin/pwd)),, \
$(error Output directory (O=...) specifies kernel src dir))

PHONY += $(MAKECMDGOALS) sub-make

$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make
$(filter-out _all sub-make,$(MAKECMDGOALS)) _all: sub-make
$(Q)@:

sub-make: FORCE
Expand Down Expand Up @@ -291,8 +291,7 @@ export quiet Q KBUILD_VERBOSE
# Look for make include files relative to root of kernel src
MAKEFLAGS += --include-dir=$(srctree)

# We need some generic definitions (do not try to remake the file).
$(srctree)/scripts/Kbuild.include: ;
# We need some generic definitions.
include $(srctree)/scripts/Kbuild.include

# Make variables (CC, etc...)
Expand Down Expand Up @@ -1561,6 +1560,9 @@ endif # skip-makefile
PHONY += FORCE
FORCE:

# Cancel implicit rules on top Makefile, `-rR' will apply to sub-makes.
Makefile: ;

# Declare the contents of the .PHONY variable as phony. We keep that
# information in a variable se we can use it in if_changed and friends.
.PHONY: $(PHONY)
65 changes: 37 additions & 28 deletions trunk/arch/avr32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
mainmenu "Linux Kernel Configuration"

config AVR32
def_bool y
bool
default y
# With EMBEDDED=n, we get lots of stuff automatically selected
# that we usually don't need on AVR32.
select EMBEDDED
Expand All @@ -19,49 +20,51 @@ config AVR32
http://avr32linux.org/.

config GENERIC_GPIO
def_bool y
bool
default y

config GENERIC_HARDIRQS
def_bool y

config STACKTRACE_SUPPORT
def_bool y

config LOCKDEP_SUPPORT
def_bool y

config TRACE_IRQFLAGS_SUPPORT
def_bool y
bool
default y

config HARDIRQS_SW_RESEND
def_bool y
bool
default y

config GENERIC_IRQ_PROBE
def_bool y
bool
default y

config RWSEM_GENERIC_SPINLOCK
def_bool y
bool
default y

config GENERIC_TIME
def_bool y
bool
default y

config RWSEM_XCHGADD_ALGORITHM
def_bool n
bool

config ARCH_HAS_ILOG2_U32
def_bool n
bool
default n

config ARCH_HAS_ILOG2_U64
def_bool n
bool
default n

config GENERIC_HWEIGHT
def_bool y
bool
default y

config GENERIC_CALIBRATE_DELAY
def_bool y
bool
default y

config GENERIC_BUG
def_bool y
bool
default y
depends on BUG

source "init/Kconfig"
Expand Down Expand Up @@ -136,22 +139,28 @@ config PHYS_OFFSET
source "kernel/Kconfig.preempt"

config HAVE_ARCH_BOOTMEM_NODE
def_bool n
bool
default n

config ARCH_HAVE_MEMORY_PRESENT
def_bool n
bool
default n

config NEED_NODE_MEMMAP_SIZE
def_bool n
bool
default n

config ARCH_FLATMEM_ENABLE
def_bool y
bool
default y

config ARCH_DISCONTIGMEM_ENABLE
def_bool n
bool
default n

config ARCH_SPARSEMEM_ENABLE
def_bool n
bool
default n

source "mm/Kconfig"

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/avr32/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ obj-y += signal.o sys_avr32.o process.o time.o
obj-y += init_task.o switch_to.o cpu.o
obj-$(CONFIG_MODULES) += module.o avr32_ksyms.o
obj-$(CONFIG_KPROBES) += kprobes.o
obj-$(CONFIG_STACKTRACE) += stacktrace.o
2 changes: 0 additions & 2 deletions trunk/arch/avr32/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ void foo(void)
OFFSET(TI_flags, thread_info, flags);
OFFSET(TI_cpu, thread_info, cpu);
OFFSET(TI_preempt_count, thread_info, preempt_count);
OFFSET(TI_rar_saved, thread_info, rar_saved);
OFFSET(TI_rsr_saved, thread_info, rsr_saved);
OFFSET(TI_restart_block, thread_info, restart_block);
}
Loading

0 comments on commit 482760a

Please sign in to comment.