mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 20:29:46 +00:00
MACE: add MaceEnet namespace.
This commit is contained in:
parent
8d9691cc6f
commit
9d7d9f3103
@ -26,6 +26,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
|
|
||||||
|
using namespace MaceEnet;
|
||||||
|
|
||||||
uint8_t MaceController::read(uint8_t reg_offset)
|
uint8_t MaceController::read(uint8_t reg_offset)
|
||||||
{
|
{
|
||||||
switch(reg_offset) {
|
switch(reg_offset) {
|
||||||
|
@ -32,6 +32,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
// MACE registers offsets
|
// MACE registers offsets
|
||||||
// Refer to the Am79C940 datasheet for details
|
// Refer to the Am79C940 datasheet for details
|
||||||
|
namespace MaceEnet {
|
||||||
|
|
||||||
enum MaceReg : uint8_t {
|
enum MaceReg : uint8_t {
|
||||||
Rcv_FIFO = 0,
|
Rcv_FIFO = 0,
|
||||||
Xmit_FIFO = 1,
|
Xmit_FIFO = 1,
|
||||||
@ -62,6 +64,8 @@ enum MaceReg : uint8_t {
|
|||||||
Rsrvd_Test_2 = 0x1F, // not used in Macintosh?
|
Rsrvd_Test_2 = 0x1F, // not used in Macintosh?
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}; // namespace MaceEnet
|
||||||
|
|
||||||
class MaceController {
|
class MaceController {
|
||||||
public:
|
public:
|
||||||
MaceController(uint16_t id) { this->chip_id = id; };
|
MaceController(uint16_t id) { this->chip_id = id; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user