spinnaker_tools 3.4.0
SpiNNaker API, sark, sc&mp, bmp firmware and build tools
Loading...
Searching...
No Matches
spinn_phy.h
Go to the documentation of this file.
1//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10
11/*
12 * Copyright (c) 2009 The University of Manchester
13 *
14 * Licensed under the Apache License, Version 2.0 (the "License");
15 * you may not use this file except in compliance with the License.
16 * You may obtain a copy of the License at
17 *
18 * https://www.apache.org/licenses/LICENSE-2.0
19 *
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
25 */
26
27#ifndef SPINN_PHY_H
28#define SPINN_PHY_H
29
50
52void phy_reset(void);
56void phy_write(uint addr, uint data);
60uint phy_read(uint addr);
61
62#endif
void phy_write(uint addr, uint data)
Write to the PHY chip.
Definition spinn_phy.c:85
uint phy_read(uint addr)
Read from the PHY chip.
Definition spinn_phy.c:99
void phy_reset(void)
Reset the PHY chip.
Definition spinn_phy.c:30
spinn_phy_registers
PHY registers.
Definition spinn_phy.h:33
@ PHY_MODE_CSR
10/100 Mode Control/Status register
Definition spinn_phy.h:42
@ PHY_SP_CSR
Special Control/Status register.
Definition spinn_phy.h:48
@ PHY_AUTO_ADV
Auto Negotiation Advertisement register.
Definition spinn_phy.h:38
@ PHY_ID2
PHY identifier 2 register.
Definition spinn_phy.h:37
@ PHY_SP_MODE
10/100 Special Modes register
Definition spinn_phy.h:43
@ PHY_SP_CSIR
Special Control/Status Indication register.
Definition spinn_phy.h:45
@ PHY_INT_MASK
Interrupt mask register.
Definition spinn_phy.h:47
@ PHY_AUTO_EXP
Auto Negotiation Expansion register.
Definition spinn_phy.h:40
@ PHY_CONTROL
Control register.
Definition spinn_phy.h:34
@ PHY_INT_SRC
Interrupt source register.
Definition spinn_phy.h:46
@ PHY_STATUS
Status register.
Definition spinn_phy.h:35
@ PHY_ERR_COUNT
Error count register.
Definition spinn_phy.h:44
@ PHY_ID1
PHY identifier 1 register.
Definition spinn_phy.h:36
@ PHY_AUTO_LPA
Auto Negotiation Link Partner register.
Definition spinn_phy.h:39
unsigned int uint
Unsigned integer - 32 bits.
Definition spinnaker.h:39