Changeset 8fe59fe in rtems-libbsd


Ignore:
Timestamp:
Nov 18, 2013, 11:46:27 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, eeb3fd5d9b07ac9a2e280cff60a1b762bd273a8d, freebsd-9.3, 1e989998de954bef51e6c19cc3d64d39f32100aa
Children:
c0877d7
Parents:
5383ed4
git-author:
Sebastian Huber <sebastian.huber@…> (11/18/13 11:46:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/13/15 09:34:18)
Message:

if_tsec: Add Nexus support

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r5383ed4 r8fe59fe  
    136136LIB_C_FILES += rtemsbsd/telnetd/pty.c
    137137LIB_C_FILES += rtemsbsd/telnetd/telnetd.c
     138LIB_C_FILES += rtemsbsd/sys/dev/tsec/if_tsec_nexus.c
    138139LIB_GEN_FILES += rtemsbsd/rtems/rtems-kvm-symbols.c
    139140LIB_C_FILES += rtemsbsd/rtems/rtems-kvm-symbols.c
  • freebsd-to-rtems.py

    r5383ed4 r8fe59fe  
    734734                'telnetd/pty.c',
    735735                'telnetd/telnetd.c',
     736                'sys/dev/tsec/if_tsec_nexus.c',
    736737        ]
    737738)
  • freebsd/sys/dev/tsec/if_tsec.h

    r5383ed4 r8fe59fe  
    5252        struct mtx      receive_lock;   /* receiver lock */
    5353
     54#ifndef __rtems__
    5455        phandle_t       node;
     56#endif /* __rtems__ */
    5557        device_t        dev;
    5658        device_t        tsec_miibus;
  • rtemsbsd/include/bsp/nexus-devices.h

    r5383ed4 r8fe59fe  
    11/*
    2  * Copyright (c) 2013-2014 embedded brains GmbH.  All rights reserved.
     2 * Copyright (c) 2013-2015 embedded brains GmbH.  All rights reserved.
    33 *
    44 *  embedded brains GmbH
     
    8989SYSINIT_DRIVER_REFERENCE(e1000phy, miibus);
    9090
     91#elif defined(LIBBSP_POWERPC_QORIQ_BSP_H)
     92
     93#include <bsp/irq.h>
     94
     95static const rtems_bsd_device_resource tsec0_res[] = {
     96        {
     97                .type = RTEMS_BSD_RES_MEMORY,
     98                .start_request = 0,
     99                .start_actual = 0xffeb0000
     100        }, {
     101                .type = RTEMS_BSD_RES_IRQ,
     102                .start_request = 0,
     103                .start_actual = QORIQ_IRQ_ETSEC_TX_1
     104        }, {
     105                .type = RTEMS_BSD_RES_IRQ,
     106                .start_request = 1,
     107                .start_actual = QORIQ_IRQ_ETSEC_RX_1
     108        }, {
     109                .type = RTEMS_BSD_RES_IRQ,
     110                .start_request = 2,
     111                .start_actual = QORIQ_IRQ_ETSEC_ER_1
     112        }
     113};
     114
     115RTEMS_BSD_DEFINE_NEXUS_DEVICE(tsec, 0, RTEMS_ARRAY_SIZE(tsec0_res),
     116   &tsec0_res[0]);
     117
    91118#endif
Note: See TracChangeset for help on using the changeset viewer.