Source
if ((poldslot->status & 0x20) && (SLOT_CONNECT(poldslot->status) == HPC_SLOT_CONNECTED) && (SLOT_PRESENT(poldslot->status)))
// SPDX-License-Identifier: GPL-2.0+
/*
* IBM Hot Plug Controller Driver
*
* Written By: Jyoti Shah, IBM Corporation
*
* Copyright (C) 2001-2003 IBM Corp.
*
* All rights reserved.
*
* Send feedback to <gregkh@us.ibm.com>
* <jshah@us.ibm.com>
*
*/
static int to_debug = 0;
//----------------------------------------------------------------------------
// timeout values
//----------------------------------------------------------------------------
// give HPC 60 sec to finish cmd
// give HPC 60 sec to finish cmd
// seconds
// poll HPC every 2 seconds
// poll latch 5 times, then poll slots
//----------------------------------------------------------------------------
// Winnipeg Architected Register Offsets
//----------------------------------------------------------------------------
// I2C Message Buffer Low
// I2C Master Operation Setup Reg
// I2C Master Control Register
// I2C Parameter Register
// I2C Status Register
//----------------------------------------------------------------------------
// Winnipeg Store Type commands (Add this commands to the register offset)
//----------------------------------------------------------------------------
// I2C AND operation
// I2C OR operation
//----------------------------------------------------------------------------
// Command set for I2C Master Operation Setup Register
//----------------------------------------------------------------------------
// read,bytes,I2C shifted,index
// write,bytes,I2C shifted,index