File:  [Apple Darwin 0.x] / driverkit / notes / DeviceStartup
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:37:50 2018 UTC (8 years, 2 months ago) by root
Branches: MAIN, Apple
CVS tags: HEAD, Darwin03, Darwin02
Darwin 0.2 Driver Kit

device driver startup - single dev_type device

	get all dev_ports assigned to us via bootstrap_info() 
		and bootstrap_look_up();
	thisUnit = 0;
	for each dev_port {
		dev_type = dev_port_to_type();
		if dev_type bad
			dev_port_destroy();
		else { 
			[thisDevice probe:dev_port 
				type:dev_type 
				unit:thisUnit++];
		}
	}
	
SCSI device
	get all dev_ports assigned to us via bootstrap_info() 
		and bootstrap_look_up();
	thisUnit = 0;
	for each dev_port {
		dev_type = dev_port_to_type();
		if dev_type bad
			dev_port_destroy();
		else {
			[thisDevice probe:dev_port 
				type:dev_type 
				unit:thisUnit++];
			[SCSIDisk probe:SCSIControllerId];
		}
	}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.