Changeset 607c5f9 in mainline for generic/include/console/chardev.h


Ignore:
Timestamp:
2005-11-23T00:16:03Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a83a802
Parents:
2677758
Message:

Enable dummy kconsole for ia32 and amd64 (UP mode works).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/console/chardev.h

    r2677758 r607c5f9  
    3535#include <synch/spinlock.h>
    3636
    37 #define CHARDEV_BUFLEN 10
     37#define CHARDEV_BUFLEN 512
    3838
    39 typedef void (* ready_func_t)(void);
     39/* Character device operations interface. */
     40struct chardev_operations {
     41        void (* suspend)(void);         /**< Suspend pushing characters. */
     42        void (* resume)(void);          /**< Resume pushing characters. */
     43};
     44
     45typedef struct chardev_operations chardev_operations_t;
    4046
    4147/** Character input device. */
     
    4652        count_t counter;
    4753        index_t index;
    48         ready_func_t ready_func;        /**< Function to re-enable input from the device. */
     54        chardev_operations_t *op;       /**< Implementation of chardev operations. */
    4955};
    5056
    51 extern void chardev_initialize(chardev_t *chardev, ready_func_t r);
     57extern void chardev_initialize(chardev_t *chardev, chardev_operations_t *op);
     58void chardev_push_character(chardev_t *chardev, __u8 ch);
    5259
    5360#endif /* __CHARDEV_H__ */
Note: See TracChangeset for help on using the changeset viewer.