mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-17 23:04:54 +00:00
> Changes done : > 1. Shared schema between host and embedded controller. 2. Commands messages are handled at driver level. 3. Debug message type added to enable debugging on i2c, spi and gpio's. 4. Auto test capabilities added to ethernet module. 5. Unit test cases written for multiple devices like LTC4275, LTC4274, LTC4015,ADT7481, PCA9557, SX1509.
28 lines
1.1 KiB
C
28 lines
1.1 KiB
C
/**
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
#ifndef MDIO_BB_H_
|
|
#define MDIO_BB_H_
|
|
|
|
/*****************************************************************************
|
|
* HEADER FILES
|
|
*****************************************************************************/
|
|
#include <stdint.h>
|
|
|
|
/*****************************************************************************
|
|
* FUNCTION DECLARATIONS
|
|
*****************************************************************************/
|
|
void mdiobb_set_bits(int smi_device, int reg_addr, int datamask);
|
|
void mdiobb_clear_bits(int smi_device, int reg_addr, int datamask);
|
|
int mdiobb_read_by_paging(int smi_device, int reg_addr);
|
|
void mdiobb_write_by_paging(int smi_device, int reg_addr, int data);
|
|
int mdiobb_write(int phy, int reg, uint16_t val);
|
|
int mdiobb_read(int phy, unsigned int reg);
|
|
|
|
#endif /* MDIO_BB_H_ */
|