Changeset b9cc81c6 in mainline for uspace/drv/char/pc-lpt/pc-lpt.c


Ignore:
Timestamp:
2025-03-06T17:35:07Z (3 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
797ab95
Parents:
870841cf
Message:

Implement quiesce in NS8250 and PC-LPT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/pc-lpt/pc-lpt.c

    r870841cf rb9cc81c6  
    11/*
    2  * Copyright (c) 2018 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    196196}
    197197
     198/** Quiesce pc-lpt device */
     199void pc_lpt_quiesce(pc_lpt_t *lpt)
     200{
     201        uint8_t control;
     202
     203        control = 0; /* nINIT=0, IRQ_ENABLE=0 */
     204        pio_write_8(&lpt->regs->control, control);
     205}
     206
    198207/** Write a single byte to the parallel port.
    199208 *
Note: See TracChangeset for help on using the changeset viewer.