/* ask the device how many channels are present and how many CSROWS as well  */
static void i5000_get_dimm_and_channel_counts(struct pci_dev *pdev, int *num_dimms_per_channel, int *num_channels)
/* ask the device how many channels are present and how many CSROWS as well  */
static void i5000_get_dimm_and_channel_counts(struct pci_dev *pdev, int *num_dimms_per_channel, int *num_channels)
{
	u8 value;
	pci_read_config_byte(pdev, MAXDIMMPERCH, &value);
	*num_dimms_per_channel = (int)value *2;
	pci_read_config_byte(pdev, MAXCH, &value);
	*num_channels = (int)value;
}