mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-09 00:22:43 +02:00
Instead of putting everything in one hash map, let's distinguish between the devices based on their type. This change makes the devices semantically separated, and is considered a preparation before we could expose a comprehensive list of allocations per major numbers and their purpose.
18 lines
330 B
C
18 lines
330 B
C
/*
|
|
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/DistinctNumeric.h>
|
|
|
|
AK_TYPEDEF_DISTINCT_ORDERED_ID(unsigned, MajorNumber);
|
|
AK_TYPEDEF_DISTINCT_ORDERED_ID(unsigned, MinorNumber);
|
|
|
|
enum class DeviceNodeType {
|
|
Block = 1,
|
|
Character = 2,
|
|
};
|