aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mxs
Commit message (Expand)AuthorAgeFilesLines
* add "preinit_regular" diag.sh set_state argumentJohn Crispin2014-12-151-0/+3
* mxs: indention and whitespace fixesJohn Crispin2014-12-131-37/+37
* mxs: allow bootloader to pass kernel cmdlineZoltan Herpai2014-12-121-1/+3
* mxs: change mxs-lradc module to depend on kmod-iio-core instead of hardcodingZoltan Herpai2014-12-121-4/+3
* mxs: add i2c and spi packages to profilesZoltan Herpai2014-12-123-3/+6
* mxs: fix automatic status led detectionZoltan Herpai2014-12-121-2/+2
* mxs: update dts file for DuckbillZoltan Herpai2014-12-121-13/+34
* mxs: i2c changes - add package for i2c module - remove i2c debugZoltan Herpai2014-12-122-4/+16
* mxs: add kernel module for spi interfaceZoltan Herpai2014-12-121-0/+15
* mxs: make boardname consistent with other targetsZoltan Herpai2014-12-121-1/+1
* kernel/modules: fix chipideaJohn Crispin2014-12-111-17/+1
* kernel: makefiles: make use of new var KERNEL_PATCHVERFelix Fietkau2014-10-241-1/+1
* targets: remove useless quotes around KERNELNAMEFelix Fietkau2014-10-051-1/+1
* mxs: remove 3.13Zoltan Herpai2014-09-237-3332/+0
* mxs: disable mmc debuggingZoltan Herpai2014-09-231-1/+0
* kernel: update 3.14 to 3.14.18Luka Perkov2014-09-101-1/+1
* kernel: update 3.14 to 3.14.16Luka Perkov2014-08-085-14/+9
* mxs: - bump target to 3.14.14 - update dcp moduleZoltan Herpai2014-08-022-4/+4
* mxs: add 3.14 config and patchesZoltan Herpai2014-08-026-0/+3370
* mxs: remote 3.12 patches and configsZoltan Herpai2014-08-026-3259/+0
* target/linux/*/image/Makefile: use new dts path variableJohn Crispin2014-07-211-3/+3
* mxs: rename files so that profiles are sorted alphabeticallyZoltan Herpai2014-05-033-5/+4
* mxs: fix typo in patch filenameZoltan Herpai2014-05-031-0/+0
* kernel: unify the two kmod-usb-mxs-phy packagesHauke Mehrtens2014-05-021-16/+0
* mxs: enable usbgadget feature for DuckbillsZoltan Herpai2014-04-281-0/+1
* upgrade 3.13 targets to 3.13.7Imre Kaloz2014-03-261-2/+2
* upgrade 3.13 targets to 3.13.2, refresh patchesImre Kaloz2014-02-137-30/+26
* kernel: fix kmod-usb-net-smsc95xxHauke Mehrtens2014-02-101-15/+0
* mxs: bump target to 3.13.1Zoltan Herpai2014-02-061-1/+1
* mxs: initial 3.13 supportZoltan Herpai2014-02-057-0/+3336
* mxs: update duckbill DTS to fix includeZoltan Herpai2014-02-051-1/+1
* mxs: make config and patches versionedZoltan Herpai2014-01-276-0/+0
* upgrade 3.12 targets to 3.12.5Imre Kaloz2013-12-141-1/+1
* mxs: build/profile-related changes - change uImage creation to use zImage - u...Zoltan Herpai2013-11-203-8/+29
* mxs: - update uboot-mxs to 3.10 - enable building uboot for imx23 along sbIma...Zoltan Herpai2013-11-121-3/+4
* mxs: bump kernel to 3.12 - remove DCP patch as it's in mainline now (dts patc...Zoltan Herpai2013-11-125-1004/+48
* mxs: add basic board runtime detection supportZoltan Herpai2013-11-124-0/+109
* mxs: duckbill: adjust leds to final hardwareZoltan Herpai2013-11-121-4/+4
* mxs: rename uboot-imx23 to uboot-mxsZoltan Herpai2013-11-121-1/+1
* mxs: fix loadaddr for uImagesZoltan Herpai2013-11-121-1/+1
* kernel: update 3.10 to 3.10.18Gabor Juhos2013-11-051-1/+1
* kernel: update 3.10 to 3.10.17Gabor Juhos2013-10-232-8/+4
* imx23: build DCP crypto co-processor support by defaultZoltan Herpai2013-10-141-1/+1
* mxs: add support for I2SE Duckbill devicesZoltan Herpai2013-10-144-1/+197
* mxs: improve image generation supportZoltan Herpai2013-10-141-1/+24
* mxs: enable device tree support in /procZoltan Herpai2013-10-141-0/+1
* imx23: rename imx23 to mxs for upcoming imx23/28 supportZoltan Herpai2013-10-1411-0/+4388
/*===========================================================================*/ /** * @brief Low level MAC initialization. * * @notapi */ void mac_lld_init(void) { #if PLATFORM_MAC_USE_MAC1 == TRUE /* Driver initialization.*/ macObjectInit(&MACD1); #endif } /** * @brief Configures and activates the MAC peripheral. * * @param[in] macp pointer to the @p MACDriver object * * @notapi */ void mac_lld_start(MACDriver *macp) { if (macp->state == MAC_STOP) { /* Enables the peripheral.*/ #if PLATFORM_MAC_USE_MAC1 == TRUE if (&MACD1 == macp) { } #endif } /* Configures the peripheral.*/ } /** * @brief Deactivates the MAC peripheral. * * @param[in] macp pointer to the @p MACDriver object * * @notapi */ void mac_lld_stop(MACDriver *macp) { if (macp->state != MAC_STOP) { /* Resets the peripheral.*/ /* Disables the peripheral.*/ #if PLATFORM_MAC_USE_MAC1 == TRUE if (&MACD1 == macp) { } #endif } } /** * @brief Returns a transmission descriptor. * @details One of the available transmission descriptors is locked and * returned. * * @param[in] macp pointer to the @p MACDriver object * @param[out] tdp pointer to a @p MACTransmitDescriptor structure * @return The operation status. * @retval MSG_OK the descriptor has been obtained. * @retval MSG_TIMEOUT descriptor not available. * * @notapi */ msg_t mac_lld_get_transmit_descriptor(MACDriver *macp, MACTransmitDescriptor *tdp) { (void)macp; (void)tdp; return MSG_OK; } /** * @brief Releases a transmit descriptor and starts the transmission of the * enqueued data as a single frame. * * @param[in] tdp the pointer to the @p MACTransmitDescriptor structure * * @notapi */ void mac_lld_release_transmit_descriptor(MACTransmitDescriptor *tdp) { (void)tdp; } /** * @brief Returns a receive descriptor. * * @param[in] macp pointer to the @p MACDriver object * @param[out] rdp pointer to a @p MACReceiveDescriptor structure * @return The operation status. * @retval MSG_OK the descriptor has been obtained. * @retval MSG_TIMEOUT descriptor not available. * * @notapi */ msg_t mac_lld_get_receive_descriptor(MACDriver *macp, MACReceiveDescriptor *rdp) { (void)macp; (void)rdp; return MSG_OK; } /** * @brief Releases a receive descriptor. * @details The descriptor and its buffer are made available for more incoming * frames. * * @param[in] rdp the pointer to the @p MACReceiveDescriptor structure * * @notapi */ void mac_lld_release_receive_descriptor(MACReceiveDescriptor *rdp) { (void)rdp; } /** * @brief Updates and returns the link status. * * @param[in] macp pointer to the @p MACDriver object * @return The link status. * @retval true if the link is active. * @retval false if the link is down. * * @notapi */ bool mac_lld_poll_link_status(MACDriver *macp) { (void)macp; return false; } /** * @brief Writes to a transmit descriptor's stream. * * @param[in] tdp pointer to a @p MACTransmitDescriptor structure * @param[in] buf pointer to the buffer containing the data to be * written * @param[in] size number of bytes to be written * @return The number of bytes written into the descriptor's * stream, this value can be less than the amount * specified in the parameter @p size if the maximum * frame size is reached. * * @notapi */ size_t mac_lld_write_transmit_descriptor(MACTransmitDescriptor *tdp, uint8_t *buf, size_t size) { (void)tdp; (void)buf; return size; } /** * @brief Reads from a receive descriptor's stream. * * @param[in] rdp pointer to a @p MACReceiveDescriptor structure * @param[in] buf pointer to the buffer that will receive the read data * @param[in] size number of bytes to be read * @return The number of bytes read from the descriptor's * stream, this value can be less than the amount * specified in the parameter @p size if there are * no more bytes to read. * * @notapi */ size_t mac_lld_read_receive_descriptor(MACReceiveDescriptor *rdp, uint8_t *buf, size_t size) { (void)rdp; (void)buf; return size; } #if (MAC_USE_ZERO_COPY == TRUE) || defined(__DOXYGEN__) /** * @brief Returns a pointer to the next transmit buffer in the descriptor * chain. * @note The API guarantees that enough buffers can be requested to fill * a whole frame. * * @param[in] tdp pointer to a @p MACTransmitDescriptor structure * @param[in] size size of the requested buffer. Specify the frame size * on the first call then scale the value down subtracting * the amount of data already copied into the previous * buffers. * @param[out] sizep pointer to variable receiving the buffer size, it is * zero when the last buffer has already been returned. * Note that a returned size lower than the amount * requested means that more buffers must be requested * in order to fill the frame data entirely. * @return Pointer to the returned buffer. * @retval NULL if the buffer chain has been entirely scanned. * * @notapi */ uint8_t *mac_lld_get_next_transmit_buffer(MACTransmitDescriptor *tdp, size_t size, size_t *sizep) { (void)tdp; (void)size; (void)sizep; return NULL; } /** * @brief Returns a pointer to the next receive buffer in the descriptor * chain. * @note The API guarantees that the descriptor chain contains a whole * frame. * * @param[in] rdp pointer to a @p MACReceiveDescriptor structure * @param[out] sizep pointer to variable receiving the buffer size, it is * zero when the last buffer has already been returned. * @return Pointer to the returned buffer. * @retval NULL if the buffer chain has been entirely scanned. * * @notapi */ const uint8_t *mac_lld_get_next_receive_buffer(MACReceiveDescriptor *rdp, size_t *sizep) { (void)rdp; (void)sizep; return NULL; } #endif /* MAC_USE_ZERO_COPY == TRUE */ #endif /* HAL_USE_MAC == TRUE */ /** @} */