]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: comedi: amplc_dio200: add min register region size in board
authorIan Abbott <abbotti@mev.co.uk>
Wed, 24 Oct 2012 15:48:03 +0000 (16:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 22:25:21 +0000 (15:25 -0700)
commit805afd6bd62b2a6050cda8592fa2f9f72abe5a19
tree118938fc2df0282094f1c9e3a77b459c84820b5e
parentef0653ac20e739aba476ee63ca2a618a3a26857d
staging: comedi: amplc_dio200: add min register region size in board

Store the length of the main register region in new member `mainsize` of
`struct dio200_board` and initialize it in each element of
`dio200_boards[]`.  For all currently supported boards this is
initialized to `DIO200_IO_SIZE` (0x20), but will be different for newer
boards to be supported in the future.

For ISA boards, this is the actual region length requested, but for PCI
boards it's the minimum expected region length.  Verify that the PCI BAR
region length is sufficient in `dio200_attach_pci()`.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_dio200.c