isa: Implement the max_num_isa_dev macro
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Sun, 1 May 2016 22:43:10 +0000 (18:43 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 May 2016 16:32:04 +0000 (09:32 -0700)
commitd9a9c6172d1cec51851e9015b6c4379635c31f1a
treeb30d1e4e703e43daa93644c16141c1816ef9f1b5
parent339e6e31d2bfb40354cbfe672b357b88a88223f2
isa: Implement the max_num_isa_dev macro

max_num_isa_dev is a macro to determine the maximum possible number of
ISA devices which may be registered in the I/O port address space given
the address extent of the ISA devices.

The highest base address possible for an ISA device is 0x3FF; this
results in 1024 possible base addresses. Dividing the number of possible
base addresses by the address extent taken by each device results in the
maximum number of devices on a system.

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/isa.h
This page took 0.025316 seconds and 5 git commands to generate.