Changeset b7ebcea in rtems


Ignore:
Timestamp:
Jun 23, 1998, 2:59:26 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a5d0c7c
Parents:
25c3ff91
Message:

Added close.

Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libchip/serial/mc68681.c

    r25c3ff91 rb7ebcea  
    301301)
    302302{
    303 /* XXX */
    304303  unsigned32             pMC68681;
    305304  unsigned32             pMC68681_port;
     
    310309  rtems_interrupt_level  Irql;
    311310  setRegister_f          setReg;
    312   getRegister_f          getReg;
    313311
    314312  pMC68681      = Console_Port_Tbl[minor].ulCtrlPort1;
    315313  pMC68681_port = Console_Port_Tbl[minor].ulCtrlPort2;
    316   getReg        = Console_Port_Tbl[minor].getRegister;
    317314  setReg        = Console_Port_Tbl[minor].setRegister;
    318315  port          = Console_Port_Tbl[minor].ulDataPort;
     
    320317
    321318  (void) mc68681_baud_rate( minor, B9600, &baud, &acr );
     319
     320  /*
     321   *  Set the DUART channel to a default useable state
     322   */
    322323
    323324  rtems_interrupt_disable(Irql);
     
    357358)
    358359{
    359 /* XXX */
     360  unsigned32      pMC68681;
     361  unsigned32      pMC68681_port;
     362  unsigned int    port;
     363  setRegister_f   setReg;
     364
     365  pMC68681      = Console_Port_Tbl[minor].ulCtrlPort1;
     366  pMC68681_port = Console_Port_Tbl[minor].ulCtrlPort2;
     367  setReg        = Console_Port_Tbl[minor].setRegister;
     368  port          = Console_Port_Tbl[minor].ulDataPort;
     369
     370  /*
     371   *  Disable interrupts from this channel and then disable it totally.
     372   */
     373
     374  (*setReg)(
     375     pMC68681,
     376     MC68681_INTERRUPT_MASK_REG,
     377     MC68681_PORT_MASK( port, 0x03 )  /* intr on RX and TX -- not break */
     378  );
     379
     380  (*setReg)( pMC68681_port, MC68681_COMMAND, MC68681_MODE_REG_DISABLE_TX );
     381  (*setReg)( pMC68681_port, MC68681_COMMAND, MC68681_MODE_REG_DISABLE_RX );
     382
    360383  /*
    361384   * Negate DTR
    362385   */
     386
    363387  if(Console_Port_Tbl[minor].pDeviceFlow != &mc68681_flow_DTRCTS) {
    364388    mc68681_negate_DTR(minor);
  • c/src/libchip/serial/mc68681.c

    r25c3ff91 rb7ebcea  
    301301)
    302302{
    303 /* XXX */
    304303  unsigned32             pMC68681;
    305304  unsigned32             pMC68681_port;
     
    310309  rtems_interrupt_level  Irql;
    311310  setRegister_f          setReg;
    312   getRegister_f          getReg;
    313311
    314312  pMC68681      = Console_Port_Tbl[minor].ulCtrlPort1;
    315313  pMC68681_port = Console_Port_Tbl[minor].ulCtrlPort2;
    316   getReg        = Console_Port_Tbl[minor].getRegister;
    317314  setReg        = Console_Port_Tbl[minor].setRegister;
    318315  port          = Console_Port_Tbl[minor].ulDataPort;
     
    320317
    321318  (void) mc68681_baud_rate( minor, B9600, &baud, &acr );
     319
     320  /*
     321   *  Set the DUART channel to a default useable state
     322   */
    322323
    323324  rtems_interrupt_disable(Irql);
     
    357358)
    358359{
    359 /* XXX */
     360  unsigned32      pMC68681;
     361  unsigned32      pMC68681_port;
     362  unsigned int    port;
     363  setRegister_f   setReg;
     364
     365  pMC68681      = Console_Port_Tbl[minor].ulCtrlPort1;
     366  pMC68681_port = Console_Port_Tbl[minor].ulCtrlPort2;
     367  setReg        = Console_Port_Tbl[minor].setRegister;
     368  port          = Console_Port_Tbl[minor].ulDataPort;
     369
     370  /*
     371   *  Disable interrupts from this channel and then disable it totally.
     372   */
     373
     374  (*setReg)(
     375     pMC68681,
     376     MC68681_INTERRUPT_MASK_REG,
     377     MC68681_PORT_MASK( port, 0x03 )  /* intr on RX and TX -- not break */
     378  );
     379
     380  (*setReg)( pMC68681_port, MC68681_COMMAND, MC68681_MODE_REG_DISABLE_TX );
     381  (*setReg)( pMC68681_port, MC68681_COMMAND, MC68681_MODE_REG_DISABLE_RX );
     382
    360383  /*
    361384   * Negate DTR
    362385   */
     386
    363387  if(Console_Port_Tbl[minor].pDeviceFlow != &mc68681_flow_DTRCTS) {
    364388    mc68681_negate_DTR(minor);
Note: See TracChangeset for help on using the changeset viewer.