cnic: Add main functions to support bnx2x devices.