help required on writing Network device driver

From: rashmi ns (nsrashmi_at_gmail.com)
Date: 09/21/05

  • Next message: Andrey Simonenko: "Re: Filesystem access from a KLD causes "vrele: negative ref cnt" panic"
    Date: Wed, 21 Sep 2005 13:05:56 +0530
    To: bugi@lists.redbrick.dcu.ie, freebsd-hackers@freebsd.org
    
    

    Hello All,
                Regarding the details of the device for which i'm trying
    to write a driver is a hdlc controller This is the output of pciconf
    for that device
    hdlc0@pci1:11:0: class=0x028000 card=0x00000000 chip=0x313413ea
    rev=0x01 hdr=0x00
       vendor = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
       device = 'DS3134/31256 Chateau/Envoy 256 Channel HDLC Controller'
       class = network
    none1@pci1:11:1: class=0x068000 card=0x00000000 chip=0x313413ea
    rev=0x01 hdr=0x00
       vendor = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
       device = 'DS3134/31256 Chateau/Envoy 256 Channel HDLC Controller'
       class = bridge
       subclass = PCI-unknown

    Currently we are writing drivers only for function 0 and in probe we
    are probing only for function zero based on the classid .

    so in general i have to write a network driver .

    In the transmit side the device the device has transmit FIFO OF SIZE
    16kb and the host writes the pending queue to inform the dma that a
    particular channel has data to be transferred associated with each
    pending queue descriptor is linked list of one or more transmit packet
    desc that describe the packet data .each of this Tx packet descriptor
    also has a pointer to tx data buffer which actually contains the data
    payload
    As the hdlc controller processes transmit pending queue descriptor
    entries it creates transmit done queue descriptorqueue entries. The
    DMA will write to the done queue when it has completed transmitting
    either a complete packet or data buffer depending on how the hdlc
    controller is configured. Via these done queue descriptors, the DMA
    informs
    the host about the status of the outgoing packet data.
    information.
    Kindly let me know how do we really create dma tags to all of these
    descriptors that is for transmit_packet_desc ,
    pending_q_desc,done_q_desc
     tx data
    Thanks in Advance,
    Rashmi.N.S
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Andrey Simonenko: "Re: Filesystem access from a KLD causes "vrele: negative ref cnt" panic"

    Relevant Pages

    • Re: Bandwidth
      ... >They communicte using TCP sockets ... you might have to add in the transmit time. ... Processing in the TCP stack takes time. ... the packet by air courier from Dallas to Houston. ...
      (comp.unix.programmer)
    • Inter-thread communications
      ... The read thread must input the packet, ... It must also forward any ACK or NAK received to the transmit ... There is no chance of an ACK or NAK embedded in the packet, ...
      (perl.beginners)
    • =?UTF-8?Q?problem=20with=20OWN=20bit=20when=20writting=20driver=20?= =?UTF-8?Q?for=20rtl8139
      ... For several weeks I have been writing kernel driver for network card based on ... there is a bit in Transmit Status Descriptor of RTL8139c which after clearing(It must be cleared to ... /**function called by kernel when kernel wat to transmit packet which is ... unsigned int physical_addr_len; ...
      (Linux-Kernel)
    • Serial ISDN to VMS system
      ... DS700-16 which is partial modem control. ... I fell over a description of the Circuit Timer parameter on the ... not up to the "transmit" size. ... I believe that a PPP packet ...
      (comp.os.vms)